A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.snowflake.com/en/sql-reference/sql/drop-sequence below:

DROP SEQUENCE | Snowflake Documentation

Reference SQL command reference Tables, views, & sequences DROP SEQUENCE DROP SEQUENCE

Removes a sequence from the current/specified schema.

See also:

CREATE SEQUENCE , ALTER SEQUENCE , SHOW SEQUENCES , DESCRIBE SEQUENCE

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

Copy

Parameters
name

Specifies 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 | RESTRICT

Snowflake 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 Examples

Drop a sequence:

DROP SEQUENCE IF EXISTS invoice_sequence_number;

Copy


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4