标题: oracle存储过程数据集,输出字符串和游标,怎么处.... [打印本页] 作者: yhdata_1h7Trn8q 时间: 2024-2-2 11:49 标题: oracle存储过程数据集,输出字符串和游标,怎么处.... 1.存储过程如下:CREATE OR REPLACE PROCEDURE DEMO(V_V_ROLECODE VARCHAR2,
V_INFO OUT VARCHAR2, --执行信息,成功'success'
V_CURSOR OUT SYS_REFCURSOR) IS
BEGIN
OPEN V_CURSOR FOR
SELECT * FROM BASE_ROLE T WHERE T.V_ORLECODE = V_V_ROLECODE;
V_INFO := 'success';
EXCEPTION
WHEN OTHERS THEN
V_INFO := SQLERRM;
END DEMO;