Difference between revisions of "Delete database"
Jump to navigation
Jump to search
Line 24: | Line 24: | ||
[[ALTER DATABASE]] | [[ALTER DATABASE]] | ||
[[ERROR: must be owner of database]] | [[ERROR: must be owner of database]] | ||
+ | |||
+ | [[GRANT "your-defined role" TO "your username";]] | ||
== See also == | == See also == |
Revision as of 15:26, 18 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: