Uploaded image for project: 'DdlUtils'
  1. DdlUtils
  2. DDLUTILS-11

derby create table syntax

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0 RC1
    • None
    • apache derby 10.1.1.0

    Description

      Create table syntax for AUTOINCREMENT column and DEFAULT value should be:

      CREATE TABLE TEST (
      SEQ_NO INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1),
      STATUS CHAR(1) NOT NULL DEFAULT 'Y',
      PRIMARY KEY (SEQ_NO)
      );

      Attachments

        Activity

          People

            tomdz Thomas Dudziak
            dmeany dan meany
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: