DROP SHARDING TABLE RULE
Description
The DROP SHARDING TABLE RULE syntax is used to drop sharding table rules from the current database.
Syntax
DropShardingTableRule ::=
'DROP' 'SHARDING' 'TABLE' 'RULE' ifExists? ruleName (',' ruleName)*
ifExists ::=
'IF' 'EXISTS'
ruleName ::=
identifierSupplement
ifExistsclause is used to avoidSharding rule not existserror.
Example
- Drop multiple sharding table rules
DROP SHARDING TABLE RULE t_order, t_order_item;- Drop a sharding table rule
DROP SHARDING TABLE RULE t_order;- Drop sharding table rule with
ifExistsclause
DROP SHARDING TABLE RULE IF EXISTS t_order;Reserved word
DROP, SHARDING, TABLE, RULE, IF, EXISTS