DROP SHARDING ALGORITHM
语法用于删除指定逻辑库的指定分片算法
DropShardingAlgorithm ::=
'DROP' 'SHARDING' 'ALGORITHM' shardingAlgorithmName ifExists? ('FROM' databaseName)?
ifExists ::=
'IF' 'EXISTS'
shardingAlgorithmName ::=
identifier
databaseName ::=
identifier
databaseName
时,默认是当前使用的 DATABASE
。 如果也未使用 DATABASE
则会提示 No database selected
;ifExists
子句用于避免 Sharding algorithm not exists
错误。DROP SHARDING ALGORITHM t_order_hash_mod FROM sharding_db;
DROP SHARDING ALGORITHM t_order_hash_mod;
ifExists
子句删除分片算法DROP SHARDING ALGORITHM IF EXISTS t_order_hash_mod;
DROP
、SHARDING
、ALGORITHM
、FROM