DROP DATABASE
AttentionThis page documents an earlier version. Go to the latest (v2.1)version.
Synopsis
The DROP DATABASE
statement removes a database and all its database objects (such as tables or types) from the system.
Syntax
Diagram
Grammar
drop_database ::= DROP DATABASE [ IF EXISTS ] database_name;
Where
database_name
is an identifier.
Semantics
- An error is raised if the specified
database_name
does not exist unlessIF EXISTS
option is present. - Currently, an error is raised if the specified database is non-empty (contains tables or types). This restriction will be removed.
See Also
当前内容版权归 YugabyteDB 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 YugabyteDB .