I have to perfrom a lot of queries where the same value is being reused. I thought of something like:
varName = 'value';
select * from sometable t where
t.field1 = varName
or t.field2 = varName;
How can this be done with PostgreSQL 12?
I tried a lot of stuff I found, but nothing seems to work.