Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Oracle Miscellaneous > REF CURSOR
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 7 Topic 6956 of 7280
Post > Topic >>

REF CURSOR

by Mtek <mtek@[EMAIL PROTECTED] > Jun 17, 2008 at 06:47 AM

Hi,

I may be answering my own question, but I want to make sure.

Say I have a ref cursor that has a dynamic where clase, and in
addition a bind variable that changes each time through the loop:

OPEN cust_ref FOR
  'SELECT customer_name, customer_address
   FROM customer
   WHERE customer_id = :v_customer_id'
   USING v_customer_id;

My question is, since v_customer_id is a parameter, do I need to close
and open the cursor each time that value changes?  Or can I just
change the value and fetch the next record?

Thanks!

John
 




 7 Posts in Topic:
REF CURSOR
Mtek <mtek@[EMAIL PROT  2008-06-17 06:47:14 
Re: REF CURSOR
tool@[EMAIL PROTECTED] (  2008-06-17 14:14:09 
Re: REF CURSOR
Mtek <mtek@[EMAIL PROT  2008-06-17 07:19:55 
Re: REF CURSOR
tool@[EMAIL PROTECTED] (  2008-06-17 15:30:21 
Re: REF CURSOR
Mtek <mtek@[EMAIL PROT  2008-06-17 08:50:22 
Re: REF CURSOR
Mtek <mtek@[EMAIL PROT  2008-06-17 08:51:45 
Re: REF CURSOR
tool@[EMAIL PROTECTED] (  2008-06-17 16:36:43 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 0:08:16 CST 2008.