DROP SHARDING ALGORITHM
Description
The DROP SHARDING ALGORITHM syntax is used to drop sharding algorithms from the current database.
Syntax
DropShardingAlgorithm ::=
'DROP' 'SHARDING' 'ALGORITHM' ifExists? algorithmName (',' algorithmName)*
ifExists ::=
'IF' 'EXISTS'
algorithmName ::=
identifierSupplement
ifExistsclause is used to avoidSharding algorithm not existserror.
Example
- Drop sharding algorithm
DROP SHARDING ALGORITHM t_order_hash_mod;- Drop multiple sharding algorithms
DROP SHARDING ALGORITHM t_order_hash_mod, t_item_hash_mod;- Drop sharding algorithm with
ifExistsclause
DROP SHARDING ALGORITHM IF EXISTS t_order_hash_mod;Reserved word
DROP, SHARDING, ALGORITHM, IF, EXISTS