I'm not sure how to do this or if it's possible.
I have a function called reportaccess in Oracle 10g. I'm passing a parameter called p_permission which will either be 'true' or 'false'.
In the where clause I would like to do something like this:
Where
blah = whatever
and whatever = something
If p_permission = 'true' then
and employee_id = p_empid
End if;
and wow = great
I'm a newbie so please if this can be done, please provide code.
Thanks,
Sherry
I have a function called reportaccess in Oracle 10g. I'm passing a parameter called p_permission which will either be 'true' or 'false'.
In the where clause I would like to do something like this:
Where
blah = whatever
and whatever = something
If p_permission = 'true' then
and employee_id = p_empid
End if;
and wow = great
I'm a newbie so please if this can be done, please provide code.
Thanks,
Sherry