I'm not certain what your question means, so if you can clarify, that would be helpful. I can tell you that PL/SQL does not support the DECODE function directly. If you want to use DECODE withing PL/SQL, it must be within a straight SQL statement within PL/SQL, otherwise you receive a pass-1 interpreter error.
I'm happy to share more if you can clarify your question.
DECODE is a function used in an SQL statement. A DECODE cannot call a stored procedure; however, it can use another function as one or more of it's parameters. Example:
Code:
select decode(COL1,'X','Y',MY_FUNCTION(COL1))
from MY_TABLE
Beware of false knowledge; it is more dangerous than ignorance. ~George Bernard Shaw
Consultant/Custom Forms & PL/SQL - Oracle 8.1.7 - Windows 2000
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.