DROP SHARDING TABLE REFERENCE RULE

Description

The DROP SHARDING TABLE REFERENCE RULE syntax is used to drop specified sharding table reference rule.

Syntax

Grammar Railroad diagram

  1. DropShardingTableReferenceRule ::=
  2. 'DROP' 'SHARDING' 'TABLE' 'REFERENCE' 'RULE' ifExists? shardingReferenceRuleName (',' shardingReferenceRuleName)*
  3. ifExists ::=
  4. 'IF' 'EXISTS'
  5. shardingReferenceRuleName ::=
  6. identifier

Supplement

  • ifExists clause is used for avoid Sharding reference rule not exists error.

Example

  • Drop a specified sharding table reference rule
  1. DROP SHARDING TABLE REFERENCE RULE ref_0;
  • Drop multiple sharding table reference rules
  1. DROP SHARDING TABLE REFERENCE RULE ref_0, ref_1;
  • Drop sharding table reference rule with ifExists clause
  1. DROP SHARDING TABLE REFERENCE RULE IF EXISTS ref_0;

Reserved word

DROP, SHARDING, TABLE, REFERENCE, RULE