DROP DATABASE
Description
Drops a database in StarRocks.
Syntax
DROP DATABASE [IF EXISTS] <db_name> [FORCE]
Note:
- After executing DROP DATABASE for a while, you can restore the dropped database through RECOVER statement. See RECOVER statement for more detail.
- If DROP DATABASE FORCE is executed, the database will be deleted directly and cannot be recovered without checking whether there are unfinished activities in the database. Generally this operation is not recommended.
Examples
-
Drop database db_text.
DROP DATABASE db_test;