SQL code
OPER@TL>select select * from test; AAA BBB ---------- ---------- 1 1 2 2 3 3 3 10 OPER@TL>create or replace procedure test_p(in_var number,out_var out sys_refcursor) 2 as 3 begin 4 open out_var for select * from test where aaa=in_var; 5 end; 6 / Procedure created. OPER@TL>var abc refcursor OPER@TL>exec test_p(3,:abc) PL/SQL procedure successfully completed. OPER@TL>print :abc AAA BBB ---------- ---------- 3 3 3 10 OPER@TL>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-06
  • 2021-12-31
  • 2022-02-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案