1

I have an sp from a package that look like this

PROCEDURE SEARCH_SOMETHING (
InParam          IN     VARCHAR2,
InParam2            IN     NUMBER,
OutCursor              OUT empcur)

How can I run this and see the data that the cursor retrieve?

1 Answer 1

1

You can simply call the cursor in the begin end block. Or use the Execute statement.

DECLARE
    L_INPARAM VARCHAR2;
    L_INPARAM2 NUMBER;
    L_OUTPARAM empcur;
BEGIN
    L_INPARAM:= value;
    L_INPARAM2:= VALUE_NUMBER;
   SEARCH_SOMETHING (
          L_INPARAM,
          L_INPARAM2
          L_OUTPARAM);

for i in L_OUTPARAM 
 loop
   use values of i;
 END LOOP:
END;
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.