DROP-DATABASE

Name

DOPR DATABASE

Description

This statement is used to delete the database (database) grammar:

  1. DROP DATABASE [IF EXISTS] db_name [FORCE];

illustrate:

  • During the execution of DROP DATABASE, the deleted database can be recovered through the RECOVER statement. See the RECOVER statement for details
  • If you execute DROP DATABASE FORCE, the system will not check the database for unfinished transactions, the database will be deleted directly and cannot be recovered, this operation is generally not recommended

Example

  1. Delete the database db_test

    1. DROP DATABASE db_test;

Keywords

  1. DROP, DATABASE

Best Practice