The DROP SHARDING ALGORITHM
syntax is used to drop sharding algorithm for specified database.
DropShardingAlgorithm ::=
'DROP' 'SHARDING' 'ALGORITHM' algorithmName ifExists? ('FROM' databaseName)?
ifExists ::=
'IF' 'EXISTS'
algorithmName ::=
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 used for avoid Sharding algorithm not exists
error.DROP SHARDING ALGORITHM t_order_hash_mod FROM sharding_db;
DROP SHARDING ALGORITHM t_order_hash_mod;
ifExists
clauseDROP SHARDING ALGORITHM IF EXISTS t_order_hash_mod;
DROP
, SHARDING
, ALGORITHM
, FROM