DROP DEFAULT SHARDING STRATEGY
Description
The DROP DEFAULT SHARDING STRATEGY
syntax is used to drop default sharding strategy for specified database.
Syntax
Grammar Railroad diagram
DropDefaultShardingStrategy ::=
'DROP' 'DEFAULT' 'SHARDING' ('TABLE' | 'DATABASE') 'STRATEGY' ifExists? ('FROM' databaseName)?
ifExists ::=
'IF' 'EXISTS'
databaseName ::=
identifier
Supplement
- When
databaseName
is not specified, the default is the currently usedDATABASE
. IfDATABASE
is not used,No database selected
will be prompted; ifExists
clause is used for avoidDefault sharding strategy not exists
error.
Example
- Drop default sharding table strategy for specified database
DROP DEFAULT SHARDING TABLE STRATEGY FROM sharding_db;
- Drop default sharding database strategy for current database
DROP DEFAULT SHARDING DATABASE STRATEGY;
- Drop default sharding table strategy with
ifExists
clause
DROP DEFAULT SHARDING TABLE STRATEGY IF EXISTS;
- Drop default sharding database strategy with
ifExists
clause
DROP DEFAULT SHARDING DATABASE STRATEGY IF EXISTS;
Reserved word
DROP
, DEFAULT
, SHARDING
, TABLE
, DATABASE
,STRATEGY
, FROM
Related links
当前内容版权归 ShardingSphere 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 ShardingSphere .