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

后端 未结 2 428
旧巷少年郎
旧巷少年郎 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:15

    Let me guess, it works if you use:

    SELECT * FROM "user";
    

    But if you try: SELECT * FROM user; it returns your current username?

提交回复
热议问题