YMatrix
Quick Start
Cluster Deployment
Data Model
Data Writing
Data Query
SQL Reference
Maintenance and Monitoring
Tool Guide
Troubleshooting
Delete the database.
DROP DATABASE [IF EXISTS] name
DROP DATABASE deletes the database. It deletes the directory entry of the database and deletes the directory containing the data. It can only be executed by the database owner. Also, the command cannot be executed when you or anyone else connect to the target database.
IF EXISTS
name
DROP DATABASE cannot be executed inside a transaction block.
Delete the database named testdb:
DROP DATABASE testdb;
There is no DROP DATABASE statement in the SQL standard.