DROP DB_DISCOVERY HEARTBEAT

Description

The DROP DB_DISCOVERY HEARTBEAT syntax is used to drop database discovery heartbeat for specified database

Syntax

Grammar Railroad diagram

  1. DropDatabaseDiscoveryHeartbeat ::=
  2. 'DROP' 'DB_DISCOVERY' 'HEARTBEAT' ifExists? dbDiscoveryHeartbeatName (',' dbDiscoveryHeartbeatName)* ('FROM' databaseName)?
  3. ifExists ::=
  4. 'IF' 'EXISTS'
  5. dbDiscoveryHeartbeatName ::=
  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;
  • ifExists clause is used for avoid Database discovery heartbeat not exists error.

Example

  • Drop mutiple database discovery heartbeat for specified database
  1. DROP DB_DISCOVERY HEARTBEAT group_0_heartbeat, group_1_heartbeat FROM discovery_db;
  • Drop single database discovery heartbeat for current database
  1. DROP DB_DISCOVERY HEARTBEAT group_0_heartbeat;
  • Drop database discovery heartbeat with ifExists clause
  1. DROP DB_DISCOVERY HEARTBEAT IF EXISTS group_0_heartbeat;

Reserved word

DROP, DB_DISCOVERY, HEARTBEAT, FROM