Skip to main content

DROP SEQUENCE

Turso Extension: DROP SEQUENCE is a Turso-specific statement not available in standard SQLite.
The DROP SEQUENCE statement removes a sequence object from the database. Once dropped, the sequence name can no longer be used with nextval(), currval(), or setval().

Syntax

Description

DROP SEQUENCE removes the named sequence from the database schema. The sequence must exist unless the IF EXISTS clause is specified.

Clauses

Examples

Drop a Sequence

Drop with IF EXISTS

Recreate After Drop

Dropping and recreating a sequence resets it to its initial state:

Errors

See Also