DROP DB_DISCOVERY RULE
语法用于为指定逻辑库删除数据库发现规则
DropDatabaseDiscoveryRule ::=
'DROP' 'DB_DISCOVERY' 'RULE' ifExists? dbDiscoveryRuleName (',' dbDiscoveryRuleName)* ('FROM' databaseName)?
ifExists ::=
'IF' 'EXISTS'
dbDiscoveryRuleName ::=
identifier
databaseName ::=
identifier
databaseName
时,默认是当前使用的 DATABASE
。 如果也未使用 DATABASE
则会提示 No database selected
;ifExists
子句用于避免 Database discovery rule not exists
错误。DROP DB_DISCOVERY RULE group_0, group_1 FROM discovery_db;
DROP DB_DISCOVERY RULE group_0;
ifExists
子句删除数据库发现规则DROP DB_DISCOVERY RULE IF EXISTS group_0;
DROP
、DB_DISCOVERY
、RULE
、FROM