Is it possibile in PL/SQL function something like
IF xVar IN (SELECT yVar
FROM....)
THEN...
this? Thank you
Is it possibile in PL/SQL function something like
IF xVar IN (SELECT yVar
FROM....)
THEN...
this? Thank you
No, you will probably have to so something like
select count(*)
into foo
from blah
where yVar = xVar
if foo > 0 then ...
Or you could make a function that returns boolean if this is something you'd use often
You can use FOR-IN with your implicit cursor. I know only IF-THEN-ELSE operator with IF expression.