DROP SHARDING ALGORITHM 语法用于从当前逻辑库中删除分片算法。
DropShardingAlgorithm ::=
'DROP' 'SHARDING' 'ALGORITHM' ifExists? algorithmName (',' algorithmName)*
ifExists ::=
'IF' 'EXISTS'
algorithmName ::=
identifier
ifExists 子句用于避免 Sharding algorithm not exists 错误。DROP SHARDING ALGORITHM t_order_hash_mod;
DROP SHARDING ALGORITHM t_order_hash_mod, t_item_hash_mod;
ifExists 子句删除分片算法DROP SHARDING ALGORITHM IF EXISTS t_order_hash_mod;
DROP、SHARDING、ALGORITHM、IF、EXISTS
