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";
I will get a list of the columns returned properly.
However, when I query:
SELECT *
FROM "my_table";
I get the error:
(ProgrammingError) relation "my_table" does not exist
'SELECT *
FROM "my_table"
' {}
Any thoughts on why I can get the columns, but can't query the table? Goal is to be able to query the table.
See Question&Answers more detail:os