关于heroku的Postgres 9.3.2.
很确定我只是一个白痴,但我似乎无法弄清楚为什么我的语法错了.
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
Run Code Online (Sandbox Code Playgroud)