-1

我使用rails db进入db界面,

键入 \d 以列出所有表。

但我无法从表中选择任何数据。

即使我故意输入错误的命令,它也没有显示任何错误?

任何的想法?谢谢

               List of relations
 Schema |       Name        |   Type   | Owner
--------+-------------------+----------+-------
 public | books             | table    | poc
 public | books_id_seq      | sequence | poc
 public | carts             | table    | poc
 public | carts_id_seq      | sequence | poc
 public | line_items        | table    | poc
 public | line_items_id_seq | sequence | poc
 public | schema_migrations | table    | poc
 public | users             | table    | poc
 public | users_id_seq      | sequence | poc
(9 rows)

pnpbook_development-# select * from books
pnpbook_development-# select * frdasdaom dfdfoij
4

1 回答 1

1

尝试添加分号:

select * from books;
于 2013-10-18T07:35:41.043 回答