Skip to content

Instantly share code, notes, and snippets.

@RashidJorvee
Created February 12, 2020 13:58
Show Gist options
  • Save RashidJorvee/97e3f3a3ef909da8ca70b0591beab659 to your computer and use it in GitHub Desktop.
Save RashidJorvee/97e3f3a3ef909da8ca70b0591beab659 to your computer and use it in GitHub Desktop.
Execute a Oracle procedure using Toad
var result refcursor -- create a variable result
BEGIN
proc_myActivities('rashidjorvee',:result); -- name of the parameter and all input parameters, and variable result as a last parameter with prefix of colon(:).
END;
-- execution of procedure has been completed and result stored in the variable result.
-- Now you have to print the variable result to see the output.
print result -- write command print and then variable name to print the result.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment