Skip to main content
The DROP SEQUENCE removes a sequence from a database.
The “ statement performs a schema change. For more information about how online schema changes work in CockroachDB, see .

Required privileges

The user must have the DROP on the specified sequence(s).

Synopsis

drop_sequence syntax diagram

Parameters

Examples

Remove a sequence (no dependencies)

In this example, other objects do not depend on the sequence being dropped.

See also