If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DB2 Cursor

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-09-10, 10:35
zinkjo zinkjo is offline
Registered User
 
Join Date: Jan 2004
Posts: 9
DB2 Cursor

Running DB2 on AIX ver 9.5

Is it possible to reset a cursor back to the first row without closing it and repopening it?
Reply With Quote
  #2 (permalink)  
Old 12-09-10, 11:19
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Yes, if it's a scrollable cursor.
Reply With Quote
  #3 (permalink)  
Old 12-09-10, 13:49
zinkjo zinkjo is offline
Registered User
 
Join Date: Jan 2004
Posts: 9
db2 cursor

can you send me the syntax as it will be in a stored proc
Reply With Quote
  #4 (permalink)  
Old 12-09-10, 14:08
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
You can find many examples if you search for "scrollable cursor" in the DB2 Information Center.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On