rapidsql

How to test an Oracle Stored Procedure with RefCursor return type?

僤鯓⒐⒋嵵緔 提交于 2019-11-27 11:34:00
I'm looking for a good explanation on how to test an Oracle stored procedure in SQL Developer or Embarcardero Rapid XE2. Thank you. Something like create or replace procedure my_proc( p_rc OUT SYS_REFCURSOR ) as begin open p_rc for select 1 col1 from dual; end; / variable rc refcursor; exec my_proc( :rc ); print rc; will work in SQL*Plus or SQL Developer. I don't have any experience with Embarcardero Rapid XE2 so I have no idea whether it supports SQL*Plus commands like this. DCookie Something like this lets you test your procedure on almost any client: DECLARE v_cur SYS_REFCURSOR; v_a

How to test an Oracle Stored Procedure with RefCursor return type?

烈酒焚心 提交于 2019-11-26 15:39:39
问题 I'm looking for a good explanation on how to test an Oracle stored procedure in SQL Developer or Embarcardero Rapid XE2. Thank you. 回答1: Something like create or replace procedure my_proc( p_rc OUT SYS_REFCURSOR ) as begin open p_rc for select 1 col1 from dual; end; / variable rc refcursor; exec my_proc( :rc ); print rc; will work in SQL*Plus or SQL Developer. I don't have any experience with Embarcardero Rapid XE2 so I have no idea whether it supports SQL*Plus commands like this. 回答2: