DROP DEFAULT SHARDING STRATEGY
Description
The DROP DEFAULT SHARDING STRATEGY syntax is used to drop the default sharding strategy from the current database.
Syntax
DropDefaultShardingStrategy ::=
'DROP' 'DEFAULT' 'SHARDING' ('TABLE' | 'DATABASE') 'STRATEGY' ifExists?
ifExists ::=
'IF' 'EXISTS'Supplement
ifExistsclause is used to avoidDefault sharding strategy not existserror.
Example
- Drop default sharding table strategy
DROP DEFAULT SHARDING TABLE STRATEGY;- Drop default sharding database strategy
DROP DEFAULT SHARDING DATABASE STRATEGY;- Drop default sharding table strategy with
ifExistsclause
DROP DEFAULT SHARDING TABLE STRATEGY IF EXISTS;- Drop default sharding database strategy with
ifExistsclause
DROP DEFAULT SHARDING DATABASE STRATEGY IF EXISTS;Reserved word
DROP, DEFAULT, SHARDING, TABLE, DATABASE, STRATEGY, IF, EXISTS