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

Does view contain data?

1078


What is string data type in sql?

1210


What kind of join is join?

1006


Can we insert in sql function?

1138


How does sql store data?

953


Can we insert data into view?

947


What is %type in sql?

1006


Why is a trigger used?

988


Can we join same table in sql?

1063


How can we connect an Android App to an Oracle database and use the PL/SQL procedural code?

1196


What is coalesce sql?

1049


what is the difference between inner and outer join? Explain with example. : Sql dba

1058


What are the different schemas objects that can be created using pl/sql?

1079


How to check if a column is nullable before setting to nullable?

1174


Which join is like an inner join?

1091