title | summary | aliases | ||
---|---|---|---|---|
DROP SEQUENCE |
TiDB 数据库中 DROP SEQUENCE 的使用概况。 |
|
DROP SEQUENCE
语句用于删除序列对象。
DropSequenceStmt ::=
'DROP' 'SEQUENCE' IfExists TableNameList
IfExists ::= ( 'IF' 'EXISTS' )?
TableNameList ::=
TableName ( ',' TableName )*
TableName ::=
Identifier ('.' Identifier)?
{{< 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)
该语句是 TiDB 的扩展,序列的实现借鉴自 MariaDB。