DROP SHARDING KEY GENERATOR
Description
The DROP SHARDING KEY GENERATOR
syntax is used to drop sharding key generator for specified database.
Syntax
Grammar Railroad diagram
DropShardingKeyGenerator ::=
'DROP' 'SHARDING' 'KEY' 'GENERATOR' ifExists? keyGeneratorName (keyGeneratorName)* ('FROM' databaseName)?
ifExists ::=
'IF' 'EXISTS'
keyGeneratorName ::=
identifier
databaseName ::=
identifier
Supplement
- When
databaseName
is not specified, the default is the currently usedDATABASE
. IfDATABASE
is not used,No database selected
will be prompted; ifExists
clause is used for avoidSharding key generator not exists
error.
Example
- Drop sharding key generator for specified database
DROP SHARDING KEY GENERATOR t_order_snowflake FROM sharding_db;
- Drop sharding key generator for current database
DROP SHARDING KEY GENERATOR t_order_snowflake;
- Drop sharding key generator with
ifExists
clause
DROP SHARDING KEY GENERATOR IF EXISTS t_order_snowflake;
Reserved word
DROP
, SHARDING
, KEY
, GENERATOR
, FROM
Related links
当前内容版权归 ShardingSphere 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 ShardingSphere .