Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

function returning cursor. But i need only one column in that cursor

user9080289Jun 8 2011 — edited Jun 8 2011
Hi,

Iam using oracle 11g

in my project i have to call a function which returns cursor. this cursor has more than 10 columns. But i need only one value from this cursor
DECLARE
v_refcursor SYS_REFCURSOR;

BEGIN
v_refcursor :=<function >
--normal process
fetch v_refcursor into <list of columns which the cursor has>

END;

so i need to declare all the 10 columns which to get the value..
Is there are way to fetch only one column from cursor which i have received if i know he column name.

Thanks
Oracle User
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 6 2011
Added on Jun 8 2011
4 comments
947 views