Postgres:如何查看表格的内容?

day*_*mer 10 postgresql

这是我所拥有的?

contacts=# \l
                                 List of databases
   Name    |  Owner   | Encoding |  Collate   |   Ctype    |   Access privileges
-----------+----------+----------+------------+------------+-----------------------
 contacts  | postgres | UTF8     | en_US.utf8 | en_US.utf8 |
 postgres  | postgres | UTF8     | en_US.utf8 | en_US.utf8 |
 template0 | postgres | UTF8     | en_US.utf8 | en_US.utf8 | =c/postgres          +
           |          |          |            |            | postgres=CTc/postgres
 template1 | postgres | UTF8     | en_US.utf8 | en_US.utf8 | =c/postgres          +
           |          |          |            |            | postgres=CTc/postgres
(4 rows)

contacts=# \d
             List of relations
 Schema |     Name      | Type  |  Owner
--------+---------------+-------+----------
 public | SequelizeMeta | table | postgres
(1 row)

contacts=# select * from SequelizeMeta;
ERROR:  relation "sequelizemeta" does not exist
LINE 1: select * from SequelizeMeta;
                      ^
contacts=# contacts=# select * from public.SequelizeMeta;
ERROR:  relation "public.sequelizemeta" does not exist
LINE 1: select * from public.SequelizeMeta;
                      ^
Run Code Online (Sandbox Code Playgroud)

我如何阅读 的内容SequelizeMeta

谢谢

day*_*mer 7

根据wildplasser命令,这就是我必须做的。谢谢wildplasser

contacts=# select * from "SequelizeMeta";
 name
------
(0 rows)
Run Code Online (Sandbox Code Playgroud)


归档时间:

查看次数:

14489 次

最近记录:

8 年,1 月 前