Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Genereic reference type in PL/SQL?
Hello,
I work with Oracle 9.2.0.7 Standard.
I know about the REF CURSOR type. But is it possible to create and use references for other types, like pointers in C/C++?
Here is a pseudocode example of what I want to achieve. In this special case I can of course use an array. It's just an example.
CREATE OR REPLACE FUNCTION ref_test(p_Index IN NUMBER) RETURN VARCHAR2 IS
strText1 VARCHAR2(10); strText2 VARCHAR2(10); strText3 VARCHAR2(10);
BEGIN
strText1 := 'One'; strText2 := 'Two'; strText3 := 'Three';
END; Received on Thu Oct 12 2006 - 12:01:42 CDT