I want to create a table with an autoincrement field, with the following syntax:
CREATE TABLE auto1
( primary1 INTEGER NOT NULL DEFAULT AUTOINCREMENT,
data1 INTEGER NOT NULL,
PRIMARY KEY ( primary1 ) );
Sybase reports with an error:
Incorrect syntax near the keyword 'DEFAULT'.
I've tried every possible combination, such as removing NOT NULL, DEFAULT, etc.. However, the only way to create the table successfully is to remove the AUTOINCREMENT syntax.
Or is there any option in Sybase to turn off the autoincrement feature?
Anyone can help? Thank you.