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

  1. DropDatabaseDiscoveryType ::=
  2. 'DROP' 'DB_DISCOVERY' 'TYPE' ifExists? dbDiscoveryTypeName (',' dbDiscoveryTypeName)* ('FROM' databaseName)?
  3. ifExists ::=
  4. 'IF' 'EXISTS'
  5. dbDiscoveryTypeName ::=
  6. identifier
  7. databaseName ::=
  8. identifier

Supplement

  • When databaseName is not specified, the default is the currently used DATABASE. If DATABASE is not used, No database selected will be prompted;
  • dbDiscoveryTypeName obtain through SHOW DB_DISCOVERY TYPE syntax query;
  • ifExists clause is used for avoid Database discovery type not exists error.

Example

  • Drop mutiple database discovery type for specified database
  1. DROP DB_DISCOVERY TYPE group_0_mysql_mgr, group_1_mysql_mgr FROM discovery_db;
  • Drop single database discovery type for current database
  1. DROP DB_DISCOVERY TYPE group_0_mysql_mgr;
  • Drop database discovery type with ifExists clause
  1. DROP DB_DISCOVERY TYPE IF EXISTS group_0_mysql_mgr;

Reserved word

DROP, DB_DISCOVERY, TYPE, FROM