title | summary | aliases | ||
---|---|---|---|---|
DROP SEQUENCE |
An overview of the usage of DROP SEQUENCE for the TiDB database. |
|
The DROP SEQUENCE
statement drops the sequence object in TiDB.
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)
This statement is a TiDB extension. The implementation is modeled on sequences available in MariaDB.