Cannot access table without public.table name. Is there a way to get rid of public?

后端 未结 2 456
旧巷少年郎
旧巷少年郎 2021-01-29 10:49

I have a table named user in PostgreSQL which cannot be accessed until I specify the fully qualified name public.user.
SHOW search_path

2条回答
  •  轮回少年
    2021-01-29 11:22

    USER is a reserved word in both Postgres and standard SQL. Do not use as a table name.

提交回复
热议问题