Creating an autoincrement-field
Posted: Sat 09 Aug 2008 14:17
How can I create an autoincrement-field with SQL? Have I to use triggers? Has anybody a code-example for that.
Thank's a lot, Peter
Thank's a lot, Peter
Discussion forums for open issues and questions concerning database tools, data access components and developer tools from Devart
https://forums.devart.com/
Code: Select all
CREATE TABLE TableName(
FieldName int IDENTITY(1,1) NOT NULL PRIMARY KEY)