Replies: 2 comments 13 replies
-
Let's make a full spec document, I'll leave comments and you can update the proposal. |
Beta Was this translation helpful? Give feedback.
-
btw, if we consider using |
Beta Was this translation helpful? Give feedback.
-
Re: #186 (comment)
Proposed feature: AUTO_INCREMENT
Type: Column Option
Constraints: Allows column options:
INT
INT
onlyNULL
NULL
orNOT NULL
though under the default implementationNULL
value will unlikely be stored.DEFAULT
KEY
UNIQUE
Any combination of allowed options is supported.
Example call:
Example function:
Influence: Transact-SQL (t-sql)/MSSQL's
IDENTITY
Function: Declaring
AUTO_INCREMENT
on a column will make it default to a generated value each time the column is inserted as:NULL
The generated value will always be stored value plus the index of the position in an insert query (0 initial).
The stored value will always be, in order of priority:
2
Notes:
AUTO_INCREMENT
should behave quite similarly toDEFAULT
.Beta Was this translation helpful? Give feedback.
All reactions