先定义一个系统游标(sys_refcursor),然后将返回的记录集放到这个游标中。例如:CREATE OR REPLACE procedure test (ret out sys_refcursor)asbegin open ret for select col_name from table;end test;