Hi,
(Note that I did not find an answer to this question in this forum.)
I have this code in a package:
PROCEDURE TEST(C CURSOR!!!, others param..) IS
aa varchar2(100);
BEGIN
aa := C.value;
END;
PROCEDURE MAIN(...) IS
BEGIN
FOR C IN (SELECT value FROM table WHERE...) LOOP
TEST(C,....); << Is this possible ?????
END LOOP;
END;
As you saw, the question is: is there a way to pass an implicit cursor to a proc??? Knowing that my cursor has a lot of columns, it is more comfortable to use this writing than to pass as much parameters than there are columns in the cursor.
Thanks.
(Note that I did not find an answer to this question in this forum.)
I have this code in a package:
PROCEDURE TEST(C CURSOR!!!, others param..) IS
aa varchar2(100);
BEGIN
aa := C.value;
END;
PROCEDURE MAIN(...) IS
BEGIN
FOR C IN (SELECT value FROM table WHERE...) LOOP
TEST(C,....); << Is this possible ?????
END LOOP;
END;
As you saw, the question is: is there a way to pass an implicit cursor to a proc??? Knowing that my cursor has a lot of columns, it is more comfortable to use this writing than to pass as much parameters than there are columns in the cursor.
Thanks.