我是 PostgreSQL 的新手,我试图理解它。我对 db 和 MySQL 很熟悉。
我正在尝试删除我创建的数据库,因为 psql 似乎忽略了我尝试通过 Django 推送的更改。
当我执行时,\l
我得到以下响应:
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
------------------+--------+----------+-------------+-------------+-------------------
postgres | neurix | UTF8 | en_AU.UTF-8 | en_AU.UTF-8 |
test_db | neurix | UTF8 | en_AU.UTF-8 | en_AU.UTF-8 |
template0 | neurix | UTF8 | en_AU.UTF-8 | en_AU.UTF-8 | =c/neurix +
| | | | | neurix=CTc/neurix
template1 | neurix | UTF8 | en_AU.UTF-8 | en_AU.UTF-8 | =c/neurix +
| | | | | neurix=CTc/neurix
template_postgis | neurix | UTF8 | en_AU.UTF-8 | en_AU.UTF-8 |
(5 rows)
现在我想删除数据库“test_db”
DROP DATABASE test_db
但是当我\l
之后执行时,表格仍然存在,并且概述看起来像。