I need to have a PL/SQL procedure of the following signature
Item turns out to be actually a dynamicfield name in a DB table. The procedure, not suprisingly, do
The trap is-
blah could be of type VARCHAR(x),CHAR(x),INTEGER.
Can I do any kind of clever ordinary SQL92 stuff without using TO_NUMBER, catching Exceptions, etc. etc. as The catching of exception doesn't work!
I tried to catch the exception using
but it failed!!
PS: I also have local variables defined of different types used for the SELECT , but that doesn't explain why WHEN OTHERS is no good.... I thought Others mean everything?? Also tried ERR_CATCH_ALL, but that appears to be an invalid constant.... Where about in the documentation could I find these funny codes... I tried, but no luck!
Code:
lookup(item IN VARCHAR2(255), value IN VARCHAR2(255),ans OUT VARCHAR2(255)))
Item turns out to be actually a dynamicfield name in a DB table. The procedure, not suprisingly, do
Code:
SELECT blah INTO ans FROM MyTable
The trap is-
blah could be of type VARCHAR(x),CHAR(x),INTEGER.
Can I do any kind of clever ordinary SQL92 stuff without using TO_NUMBER, catching Exceptions, etc. etc. as The catching of exception doesn't work!
I tried to catch the exception using
Code:
EXCEPTION
WHEN OTHERS THEN
-- do the handling for when blah=VARCHAR/CHAR
END;
PS: I also have local variables defined of different types used for the SELECT , but that doesn't explain why WHEN OTHERS is no good.... I thought Others mean everything?? Also tried ERR_CATCH_ALL, but that appears to be an invalid constant.... Where about in the documentation could I find these funny codes... I tried, but no luck!