I'm trying to figure out how to change the comparison operator in my select statement based on the value of a parameter.
Pseudocode:
if (chooseparam = 'like') then
select column
from table
where column like 'anotherparam%'
else
select column
from table
where column =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.