The DROP SHARDING KEY GENERATOR
syntax is used to drop sharding key generator for specified database.
DropShardingKeyGenerator ::=
'DROP' 'SHARDING' 'KEY' 'GENERATOR' ifExists? keyGeneratorName (keyGeneratorName)* ('FROM' databaseName)?
ifExists ::=
'IF' 'EXISTS'
keyGeneratorName ::=
identifier
databaseName ::=
identifier
databaseName
is not specified, the default is the currently used DATABASE
. If DATABASE
is not used, No database selected
will be prompted;ifExists
clause is used for avoid Sharding key generator not exists
error.DROP SHARDING KEY GENERATOR t_order_snowflake FROM sharding_db;
DROP SHARDING KEY GENERATOR t_order_snowflake;
ifExists
clauseDROP SHARDING KEY GENERATOR IF EXISTS t_order_snowflake;
DROP
, SHARDING
, KEY
, GENERATOR
, FROM