Postgresql tables exists, but getting “relation does not exist” when querying

后端 未结 8 2279
没有蜡笔的小新
没有蜡笔的小新 2020-11-30 23:22

I have a postgresql db with a number of tables. If I query:

SELECT column_name
FROM information_schema.columns
WHERE table_name=\"my_table\";
8条回答
  •  北海茫月
    2020-11-30 23:47

    You can try:

    SELECT * 
    FROM public."my_table"
    

    Don't forget double quotes near my_table.

提交回复
热议问题