Hi, all
What are the rules to use OUT Cursor with Procedure, I started to do something like below, but still have error "need declare a cursor", can find any info anywhere.
create or replace Procedure p_RYBA_GetALL (in_custom IN NUMBER, out_cursorINFO OUT CURSOR_INFO) AS
TYPE CT IS REF CURSOR RETURN tc_INFO.id_comp%TYPE, tc_INFO.id_name%TYPE , tc_INFO.cust_profile%TYPE;
CURSOR_INFO CT;
BEGIN
OPEN out_cursorINFO FOR
SELECT id_comp, id_name, cust_profile FROM tc_INFO
WHERE id_comp = in_custom;
END ;
Tx
V
What are the rules to use OUT Cursor with Procedure, I started to do something like below, but still have error "need declare a cursor", can find any info anywhere.
create or replace Procedure p_RYBA_GetALL (in_custom IN NUMBER, out_cursorINFO OUT CURSOR_INFO) AS
TYPE CT IS REF CURSOR RETURN tc_INFO.id_comp%TYPE, tc_INFO.id_name%TYPE , tc_INFO.cust_profile%TYPE;
CURSOR_INFO CT;
BEGIN
OPEN out_cursorINFO FOR
SELECT id_comp, id_name, cust_profile FROM tc_INFO
WHERE id_comp = in_custom;
END ;
Tx
V