GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Tech FAQs  >  PL/SQL

 Print  |  
Question:  how to return multiple records from procedure?
e. g. I fired a select query and I want to retun a result to ?




October 10, 2007 02:13:34 #2
 manish dudhe   Member Since: Visitor    Total Comments: N/A 

RE: how to return multiple records from procedure?
 
Hi,

User Ref cursor as out parameter in proc


and execute as below

sql>var s refcursor

sql>exec demo_proc('manish',:s);

sql>print s
     

 

Back To Question