저는 PostgreSQL을 처음 사용하며 간단한 명령 인 것으로 인식하는 것에 문제가 있습니다 DROP DATABASE
및 DROPDB
. 다음 명령이 내 데이터베이스를 삭제하지 않는 이유는 무엇입니까?데이터베이스를 삭제할 수 없습니다.
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)
예! 사람들은 내가 보았던 주제에 대한 글을 많이 남깁니다 : ( – Sevenearths
클라이언트에 따라 하나의 명령에 세미콜론이 필요하지 않을 수도 있습니다. 대화 형 psql에서 필요합니다. –
-S 또는 - 필요한 세미콜론을 없애기 위해 단 일행. –