Snowflake createSequence
Last updated: March 26, 2026
Creates a new sequence in Snowflake. Sequences generate unique numeric values and are commonly used for auto-incrementing primary keys.
Note: Automatic rollback drops the sequence.
Known limitations: This change type does not support database inspection features (snapshot, diff, diff-changelog, and generate-changelog commands).
Available attributes
Attribute | Type | Description | Required |
|---|---|---|---|
| String | Name of the catalog (database) where the sequence is created | No |
| String | Name of the schema where the sequence is created | No |
| String | Name of the sequence to create | Yes |
| Boolean | Replace the sequence if it exists using OR REPLACE* | No |
| Boolean | Only create if the sequence doesn't exist using IF NOT EXISTS* | No |
| Long | Initial value for the sequence | No |
| Long | Value to increment by for each sequence value | No |
| Boolean | Guarantee ordered sequence values (true for ORDER) | No |
| String | Comment describing the sequence | No |
* orReplace and ifNotExists are mutually exclusive.