【发布时间】:2012-09-10 10:09:00
【问题描述】:
有时我在psql 中的命令似乎没有任何效果。知道为什么吗?
下面是数据库library_development中所有表的列表:
library_development=> \d
List of relations
Schema | Name | Type | Owner
--------+-------------------+-------+----------
public | Pavan | table | postgres
public | schema_migrations | table | sai
(2 rows)
在此之后我删除了表 Pavan 使用:
library_development-> drop table Pavan
但表格并没有被删除,它的显示如下所示:
library_development=> \d
List of relations
Schema | Name | Type | Owner
--------+-------------------+-------+----------
public | Pavan | table | postgres
public | schema_migrations | table | sai
(2 rows)
还有:
我在 Windows 中使用 PostgreSQL。是否有清除控制台的命令(如 Oracle 中的 cl scr)?
在使用 DML 脚本时,我需要在 Postgresql 中执行“提交”的任何概念吗?
【问题讨论】:
-
在发布此类问题时,提及您的 PostgreSQL 版本通常是个好主意。不过,+1 可以清楚地显示正在发生的事情。
标签: postgresql psql