DROP SEQUENCE

statementsupportedTables, views, streams, sequences

docs.snowflake.com ↗

Object: SEQUENCE

Removes a sequence from the current/specified schema.

Syntax

supportedpartialnot supportednot scored

DROP SEQUENCE [ IF EXISTS ] <name> [ CASCADE | RESTRICT ]

Parameters

NameRequiredDescription
nameSpecifies the identifier of the sequence to drop. If the sequence identifier is not fully-qualified (in the form of db_name.schema_name.sequence_name or schema_name.sequence_name), the command looks for the sequence in the current schema for the session.
CASCADE | RESTRICTSnowflake allows the keywords CASCADE and RESTRICT syntactically, but does not act on them. For example, dropping a sequence with the CASCADE keyword does not actually drop a table that uses the sequence. Dropping a sequence with the RESTRICT keyword does not issue a warning if a table is still using the sequence.

Usage notes

See also

Referenced by