Difference between revisions of "Delete database"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
== [[PostgreSQL]] == | == [[PostgreSQL]] == | ||
− | [[DROP DATABASE]] [IF EXISTS] | + | [[DROP DATABASE]] [IF EXISTS] [[my_database_name]][[;]] |
Do not forget the <code>;</code> at the end of the line | Do not forget the <code>;</code> at the end of the line | ||
Revision as of 09:28, 26 September 2022
PostgreSQL
DROP DATABASE [IF EXISTS] my_database_name;
Do not forget the ;
at the end of the line
DROP DATABASE database_name; Output: DROP DATABASE
Related terms: sudo -u postgres psql
Related
See also
Advertising: