DROP SHARDING KEY GENERATOR
语法用于删除指定逻辑库的指定分片主键生成器
DropShardingKeyGenerator ::=
'DROP' 'SHARDING' 'KEY' 'GENERATOR' ifExists? keyGeneratorName (keyGeneratorName)* ('FROM' databaseName)?
ifExists ::=
'IF' 'EXISTS'
keyGeneratorName ::=
identifier
databaseName ::=
identifier
databaseName
时,默认是当前使用的 DATABASE
。 如果也未使用 DATABASE
则会提示 No database selected
;ifExists
子句用于避免 Sharding key generator not exists
错误。DROP SHARDING KEY GENERATOR t_order_snowflake FROM sharding_db;
DROP SHARDING KEY GENERATOR t_order_snowflake;
ifExists
子句删除分片主键生成器DROP SHARDING KEY GENERATOR IF EXISTS t_order_snowflake;
DROP
、SHARDING
、KEY
、GENERATOR
、FROM