postgresql - Can't delete database -
i'm new postgresql , having problem perceive simple command drop database
, dropdb
. why following commands not delete database?
postgres=# drop database clientms postgres-# \l list of databases name | owner | encoding | collate | ctype | access privileges -----------+--------------+----------+-------------+-------------+----------------------- clientms | clientmsuser | utf8 | en_gb.utf-8 | en_gb.utf-8 | postgres | postgres | utf8 | en_gb.utf-8 | en_gb.utf-8 | template0 | postgres | utf8 | en_gb.utf-8 | en_gb.utf-8 | =c/postgres + | | | | | postgres=ctc/postgres template1 | postgres | utf8 | en_gb.utf-8 | en_gb.utf-8 | =c/postgres + | | | | | postgres=ctc/postgres (4 rows) postgres-# dropdb clientms postgres-# \l list of databases name | owner | encoding | collate | ctype | access privileges -----------+--------------+----------+-------------+-------------+----------------------- clientms | clientmsuser | utf8 | en_gb.utf-8 | en_gb.utf-8 | postgres | postgres | utf8 | en_gb.utf-8 | en_gb.utf-8 | template0 | postgres | utf8 | en_gb.utf-8 | en_gb.utf-8 | =c/postgres + | | | | | postgres=ctc/postgres template1 | postgres | utf8 | en_gb.utf-8 | en_gb.utf-8 | =c/postgres + | | | | | postgres=ctc/postgres (4 rows)
you forgot semicolon ;
after command. try:
drop database clientms;
the incomplete command indicated prompt: -
instead of =
. allow multi-line commands.
Comments
Post a Comment