I'm attempting to do the most basic WHERE statement in psql and I'm getting a strange error:
ERROR: column "rom_tut" does not exist
LINE 1: SELECT * FROM pg_roles WHERE rolname="rom_tut";
Why is it complaining that the value isn't a column?
use single quote for string value because double quote means column name
SELECT * FROM pg_roles WHERE rolname='rom_tut'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With