Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to return more than one value from a function?

Answer Posted / siva

Create or replace procedure proc(n number,s out sys_refcursor)
is
Begin
open s for select ename from emp where deptno=n;
end:

Var c ref_cursor;
exec proc(10,:c);
print : c;
Clark
King
Miller

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How are functions and procedures called in PL/SQL?

1230


How do I run a query in pl sql developer?

996


What is database migration?

970


Explain the the delete statements in sql?

1063


what is the difference between join and union? : Sql dba

1113


What is cross join sql?

917


Explain the select statement in sql?

1112


What is AUTH_ID and AUTH_USER in pl/sql ?

2193


what are string data types? : Sql dba

1045


what are the non-standard sql commands supported by 'mysql'? : Sql dba

1120


Explain two easy sql optimizations.

1013


What is crud stand for?

998


Which join is default?

954


give the syntax of grant and revoke commands? : Sql dba

1153


What does the sign mean in sql?

989