Quick onboard
Deployment
Data Modeling
Connecting
Migration
Query
Operations and Maintenance
Common Maintenance
Partition
Backup and Restore
Expansion
Mirroring
Resource Management
Security
Monitoring
Performance Tuning
Troubleshooting
Reference Guide
Tool guide
Data type
Storage Engine
Executor
Stream
DR (Disaster Recovery)
Configuration
Index
Extension
SQL Reference
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.