postgres=# drop database clIEntmspostgres-# \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 clIEntmspostgres-# \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)你忘记了分号;在命令之后.尝试:
DROP DATABASE clIEntms;
不完整的命令也由提示符指示: – 而不是=.这是为了允许多行命令.
总结以上是内存溢出为你收集整理的postgresql – 无法删除数据库全部内容,希望文章能够帮你解决postgresql – 无法删除数据库所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)