How to return multiple rows from the stored procedure? (Oracle PL/SQL)

前端 未结 5 1984
野的像风
野的像风 2020-11-27 11:19

I want to create a stored procedure with one argument which will return different sets of records depending on the argument. What is the way to do this? Can I call it from p

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-27 11:43

    create procedure (p_cur out sys_refcursor) as begin open p_cur for select * from  end;
    

提交回复
热议问题