MSC-PG0024

Advance sequence and return new value

Severity

Low

Description

Snowflake does not guarantee generating sequence numbers without gaps. The generated numbers consistently increase in value (or decrease in value if the step size is negative) but are not necessarily contiguous.

Code Example

Input Code:

SELECT nextval('seq1');

Output Code:

SELECT seq1.nextval;

Recommendations

Last updated