NEXT VALUE FOR
BIGINT
— dialect 2 and 3INTEGER
— dialect 1
NEXT VALUE FOR sequence-name
NEXT VALUE FOR
returns the next value of a sequence.Sequence is the SQL-standard term for what is historically called a generator in Firebird and its ancestor, InterBase.The NEXT VALUE FOR
operator is equivalent to the legacy GEN_ID (…, increment)
function with increment the increment stored in the metadata of the sequence.It is the recommended syntax for retrieving the next sequence value.
Note
|
Unlike the The increment of a sequence can be configured with the In dialect 1, the result type is |
NEW.CUST_ID = NEXT VALUE FOR CUSTSEQ;