12
Postgres 9.3.2在heroku上。Postgres drop table語法錯誤
很確定我只是一個白癡,但我似乎無法弄清楚爲什麼我的語法錯了。
db=> \dt
List of relations
Schema | Name | Type | Owner
--------+------------+-------+----------------
public | device | table | admin
public | post | table | admin
public | user | table | admin
(3 rows)
// why does this fail?
db=> drop table user;
ERROR: syntax error at or near "user"
LINE 1: drop table user;
// does the right thing
db=> drop table error;
ERROR: table "error" does not exist
謝謝。不知道。將在12分鐘內接受。 – Derek