I am running a db on postgres12.4
I have been trying to run a query that looks like this:
SELECT * FROM table_1 INNER JOIN table_2 ON table_1.column = table_2.column WHERE table_1.column = ‘string’;
I am being returned:
ERROR: column 'string' does not exist
The following queries work fine:
SELECT * FROM table_1 INNER JOIN table_2 ON table_1.column = table_2.column WHERE table_1.column = int;
SELECT * FROM table_1 WHERE column = ‘string’;
I read several posts about this error, which seems very common and is usually solved by switching up quotation variations around the table name, column name, and the name of the string I am querying for. I have tried every variation of double and single
quotes around each table name, column name, and name of string, and nothing worked.
|