I want to run the following parameterized query from the psql command line:
SELECT *
FROM users
WHERE username = :username;
How do I set the username parameter on the command line?
I tried this:
\set username 'john'
But when I run the query, I get the following error message:
ERROR: column "john" does not exist
LINE 3: WHERE username = john;
^