Difference between revisions of "Delete database"

From wikieduonline
Jump to navigation Jump to search
Line 12: Line 12:
 
== Related ==
 
== Related ==
 
* [[DELETE]]
 
* [[DELETE]]
 +
* <code>[[CREATE DATABASE]]</code>
  
 
== See also ==
 
== See also ==

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: