Home > database > Oracle stored sys_refcursor out parameters in the process of how to pass arguments
Oracle stored sys_refcursor out parameters in the process of how to pass arguments
Time:10-01
Test the stored procedure,
declare - Local variables here I the integer; Type the rc is ref cursor; Cur rc; The begin - the Test statements here
Print_name (20, : cur); end;
The parameter type errors
CodePudding user response:
You the wrong ah, give you a reference
Declare I the integer; Type the rc is ref cursor; Cur rc; V_sql varchar2 (2000); The begin V_sql:='select * from table'; The OPEN cur FOR V_SQL; Print_name (cur); end;