DROP SHARDING ALGORITHM
Description
The DROP SHARDING ALGORITHM
syntax is used to drop sharding algorithm for specified database.
Syntax
Grammar Railroad diagram
DropShardingAlgorithm ::=
'DROP' 'SHARDING' 'ALGORITHM' algorithmName ifExists? ('FROM' databaseName)?
ifExists ::=
'IF' 'EXISTS'
algorithmName ::=
identifier
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 used for avoidSharding algorithm not exists
error.
Example
- Drop sharding algorithm for specified database
DROP SHARDING ALGORITHM t_order_hash_mod FROM sharding_db;
- Drop sharding algorithm for current database
DROP SHARDING ALGORITHM t_order_hash_mod;
- Drop sharding algorithm with
ifExists
clause
DROP SHARDING ALGORITHM IF EXISTS t_order_hash_mod;
Reserved word
DROP
, SHARDING
, ALGORITHM
, FROM
Related links
当前内容版权归 ShardingSphere 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 ShardingSphere .