GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  PL/SQL
Go To First  |  Previous Question  |  Next Question 
 PL/SQL  |  Question 43 of 166    Print  
I have written a procedure in which the cursor is fetching 2 lakh records. I would like to pass on these 2 lakh records as an in paramter to the other procedure. How can we achieve this logic?

  
Total Answers and Comments: 4 Last Update: November 15, 2006     Asked by: Srinivas 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
August 02, 2006 14:11:21   #1  
Shailen        

RE: I have written a procedure in which the cursor is ...

I will probably say check your logic -

1. First of all why do you need to process 2 lac records in Cursor. There are round abouts

3. Please specify which you want to send these rows as parameters


 
Is this answer useful? Yes | No
August 09, 2006 13:03:23   #2  
Rama Krishna.Yerra        

RE: I have written a procedure in which the cursor is ...

Srinivas !!

You Logic is correct You can have wht ever you want.wht we hve to do is...

Create a ref cursor in a package..Then create an Instance of that cursor in PL/SQL block.then pass that Instance of the cursor as a variable to the procedure.. by specifing the variable type as type of that Instance.. Then its work ...

Thanks&Regds

Ramki TCS


 
Is this answer useful? Yes | No
November 14, 2006 03:30:13   #3  
prasanna        

RE: I have written a procedure in which the cursor is ...

hi friend

of course no need of sending 2lakh records but some records whatever i required


 
Is this answer useful? Yes | No
November 15, 2006 12:19:42   #4  
prakash        

RE: I have written a procedure in which the cursor is ...

Hi

I would suggest not to pass all the records to you next procedure. You should look to redesign your next procedure so that it accepts one record and process it. This way you can iterate thru records in your main process and call the next process wherever required.


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape