Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-168

Can't ALTER a column to have a new DEFAULT value.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.0.2.0
    • 10.1.1.0
    • Documentation
    • None
    • Windows XP SP1 Professional

    Description

      Documentation states that an existing column in a table can have a DEFAULT value added via the ALTER TABLE statement. Unfortunately, none of the syntax provided gives a way of accomplishing this. An equivalent command from DB2 would be:

      ALTER TABLE EMPL ALTER COLUMN BONUS SET DEFAULT 1000;

      Is this an error in the documentation, and omission in the product, or is there a different command to accomplish this?

      Attachments

        1. derby168.diff
          2 kB
          Jeff Levitt

        Issue Links

          Activity

            People

              Unassigned Unassigned
              baklarz George Baklarz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: