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

catalogName

String

Name of the catalog (database) where the sequence is created

No

schemaName

String

Name of the schema where the sequence is created

No

sequenceName

String

Name of the sequence to create

Yes

orReplace

Boolean

Replace the sequence if it exists using OR REPLACE*

No

ifNotExists

Boolean

Only create if the sequence doesn't exist using IF NOT EXISTS*

No

startValue

Long

Initial value for the sequence

No

incrementBy

Long

Value to increment by for each sequence value

No

ordered

Boolean

Guarantee ordered sequence values (true for ORDER)

No

comment

String

Comment describing the sequence

No

* orReplace and ifNotExists are mutually exclusive.

loading

loading

loading

loading