tencent cloud

TDSQL Boundless

DROP DATABASE

PDF
Focus Mode
Font Size
Last updated: 2026-02-10 11:26:19

Description

Delete a database.

Syntax

drop_database_stmt:
DROP DATABASE [IF EXISTS] database_name;

Parameter Description

Parameter
Optional or Not
Description
IF EXISTS
Optional
Prevents errors when the database does not exist.
database_name
Required
Specifies the name of the database to be deleted.

Examples

tdsql [(none)]> DROP DATABASE test1;
Query OK, 0 rows affected

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback