Skip to content

Latest commit

 

History

History
59 lines (37 loc) · 1.07 KB

sql-statement-drop-sequence.md

File metadata and controls

59 lines (37 loc) · 1.07 KB
title summary category aliases
DROP SEQUENCE
TiDB 数据库中 DROP SEQUENCE 的使用概况。
reference
/docs-cn/dev/reference/sql/statements/drop-sequence/

DROP SEQUENCE

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

语法图

DropSequenceStmt:

DropSequenceStmt

OptTemporary:

OptTemporary

IfExists:

IfExists

TableNameList:

TableNameList

示例

{{< copyable "sql" >}}

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

{{< copyable "sql" >}}

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

MySQL 兼容性

MySQL 暂无序列选项。TiDB 序列借鉴自 MariaDB。SETVAL 函数的步调是 TiDB 特有的,其他函数的步调与 MariaDB 保持一致。

另请参阅