DROP DB_DISCOVERY TYPE
Description
The DROP DB_DISCOVERY TYPE
syntax is used to drop database discovery type for specified database
Syntax
Grammar Railroad diagram
DropDatabaseDiscoveryType ::=
'DROP' 'DB_DISCOVERY' 'TYPE' ifExists? dbDiscoveryTypeName (',' dbDiscoveryTypeName)* ('FROM' databaseName)?
ifExists ::=
'IF' 'EXISTS'
dbDiscoveryTypeName ::=
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; dbDiscoveryTypeName
obtain through SHOW DB_DISCOVERY TYPE syntax query;ifExists
clause is used for avoidDatabase discovery type not exists
error.
Example
- Drop mutiple database discovery type for specified database
DROP DB_DISCOVERY TYPE group_0_mysql_mgr, group_1_mysql_mgr FROM discovery_db;
- Drop single database discovery type for current database
DROP DB_DISCOVERY TYPE group_0_mysql_mgr;
- Drop database discovery type with
ifExists
clause
DROP DB_DISCOVERY TYPE IF EXISTS group_0_mysql_mgr;
Reserved word
DROP
, DB_DISCOVERY
, TYPE
, FROM
Related links
当前内容版权归 ShardingSphere 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 ShardingSphere .