DROP SEQUENCE

DROP SEQUENCE 语句用于删除序列对象。

语法图

DropSequenceStmt
DROPSEQUENCEIfExistsTableNameList
IfExists
IFEXISTS
TableNameList
TableName,
TableName
Identifier.Identifier

示例

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

MySQL 兼容性

该语句是 TiDB 的扩展,序列的实现借鉴自 MariaDB。

另请参阅