Refcursor

A nice and simple one today, but something that comes up quite frequently.

In isolation, how can I test/see the results of my stored procedure which returns a refcursor?


var r refcursor
set autoprint on
exec myproc(:r)

And that’s all folks….

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 75 other followers

%d bloggers like this: