When I run the psql command from the postgres user account like this:
sudo -i -u testuser psql testdb -c 'select * from "USER" where "LogInName"='TESTING';'
so what can i do for this case thank you for your answer.
When I run the psql command from the postgres user account like this:
sudo -i -u testuser psql testdb -c 'select * from "USER" where "LogInName"='TESTING';'
so what can i do for this case thank you for your answer.
You can use dollar-quoted-string in postgres like mentioned here
sudo -i -u testuser psql testdb -c 'select * from "USER" where "LogInName"=$$TESTING$$;'