-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
SQL 2003 standart introduces the way to create sequences to insert their values into PK columns.
the syntax (BNF-like) is described in ISO/IEC 9075-2:2003 (E)
paragraph 11.62
my simplified proposition:
CREATE SEQUENCE <sequence_name>
[AS [built_in_integer_type]]
[START WITH <constant>]
[INCREMENT BY <constant>]
paragraph 6.13
my simplified proposition:
NEXT VALUE FOR <sequence_name>
So, to create a new record, the following sequence of SQL commands is possible:
- Declare variable (see issue #6)
- Generate new sequence number (to variable)
- Insert this number into record (from variable)
- Return this number (from variable) to the client (to EF for example)
So, what do you think about supporting this?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels