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

Required privileges

The user must have the DROP privilege 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