Difference between revisions of "Delete database"
Jump to navigation
Jump to search
Line 19: | Line 19: | ||
== Related == | == Related == | ||
* [[DELETE]] | * [[DELETE]] | ||
+ | * [[DROP TABLE]] | ||
* <code>[[CREATE DATABASE]]</code> | * <code>[[CREATE DATABASE]]</code> | ||
* <code>[[\list]]</code> | * <code>[[\list]]</code> |
Revision as of 14:18, 23 November 2022
PostgreSQL
DROP DATABASE [IF EXISTS] my_database_name;
Do not forget the ;
at the end of the line
DROP DATABASE [IF EXISTS] my_database_name (FORCE) ;
DROP DATABASE database_name; Output: DROP DATABASE
DROP DATABASE database_name (FORCE);
Related terms:
Related
ALTER DATABASE ERROR: must be owner of database
GRANT "your-defined role" TO "your username";
See also
Advertising: