Retro Eye care Haitian Deep Dark Default

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 ::=
  identifier

Supplement

  • ifExists clause is used to avoid Sharding algorithm not exists error.

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 ifExists clause
DROP SHARDING ALGORITHM IF EXISTS t_order_hash_mod;

Reserved word

DROP, SHARDING, ALGORITHM, IF, EXISTS