Difference between revisions of "Delete database"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
== [[PostgreSQL]] == | == [[PostgreSQL]] == | ||
[[DROP DATABASE]] [IF EXISTS] database_name[[;]] | [[DROP DATABASE]] [IF EXISTS] database_name[[;]] | ||
− | + | Do not forget the <code>;</code> at the end of the line | |
DROP DATABASE database_name; | DROP DATABASE database_name; |
Revision as of 09:27, 26 September 2022
PostgreSQL
DROP DATABASE [IF EXISTS] 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: