YMatrix
Quick Start
Standard Cluster Deployment
Data Modeling
Connecting to The database
Data Migration
Data Query
Maintenance and Monitoring
Performance Tuning
Troubleshooting
Reference Guide
SQL Reference
FAQ
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.