I try to select all records of a table (Postgres DB) with the following sql:
SELECT * FROM 'tablename' WHERE 'myTimestampRow' >= now()
There’s allways an error message, telling me that there’s an ‘invalid input syntax for type timestamp with time zone: “myTimestampRow”‘.
What’s wrong with the above query?
Lose the single-quotes:
You can optionally double-quote column- and table-names, but no single-quotes; they will be interpreted as characters/strings.