I\'ve been pulling my hair out. I have a very simple postgre database, one specific table has a column named lName (uppercase N). Now I know with postgre I must quote lName
I would guess:
SELECT * FROM employee WHERE "lName" LIKE 'Smith'
(note the different quotes; "foo" is a quoted identifier; 'foo' is a string literal)
"foo"
'foo'
Also, in most SQL dialects, a LIKE without a wildcard is equivalent to =; did you mean to include a wildcard?
LIKE
=