DROP SEQUENCE

+3
TomShawn
CharLotteiu
dveeden
Oreoxmt

The DROP SEQUENCE statement drops the sequence object in TiDB.

Synopsis

DropSequenceStmt
DROPSEQUENCEIfExistsTableNameList
IfExists
IFEXISTS
TableNameList
TableName,
TableName
Identifier.Identifier

Examples

DROP SEQUENCE seq;
Query OK, 0 rows affected (0.10 sec)
DROP SEQUENCE seq, seq2;
Query OK, 0 rows affected (0.03 sec)

MySQL compatibility

This statement is a TiDB extension. The implementation is modeled on sequences available in MariaDB.

See also

DROP SEQUENCEwas last updated 5/16/2024, 5:50:43 AM: update aliases for release-8.1 branch (#17500)

Was this page helpful?