The DROP SHARDING TABLE RULE
syntax is used to drop sharding table rule for specified database.
DropShardingTableRule ::=
'DROP' 'SHARDING' 'TABLE' 'RULE' shardingRuleName (',' shardingRuleName)* ('FROM' databaseName)?
shardingRuleName ::=
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.DROP SHARDING TABLE RULE t_order, t_order_item FROM sharding_db;
DROP SHARDING TABLE RULE t_order;
DROP
, SHARDING
, TABLE
, RULE
, FROM