Solved

Embedded Cursors

Posted on 2004-09-01
6
511 Views
Last Modified: 2006-11-17
Is it possible to have cursors within cursors in Mainframe DB2 ? Is this the same as Scrollable cursors ? If cursor in curor is possible, where can i get more info about it ? Thanks.
0
Comment
Question by:hellomdp
  • 2
  • 2
6 Comments
 
LVL 3

Expert Comment

by:lwilkin7
ID: 11957191
What do you mean by cursor within a cursor?

You can open multiple cursors at one time.  For ex., you can open cursor1, fetch a row, open cursor2 based on the row fetched from cursor1, nest the loops, etc.

Lloyd
0
 

Author Comment

by:hellomdp
ID: 11958370
No. I have used multiple cursors, and that concept is fine.

An analogy, SUBSELECT ===> This is a SELECT within a SELECT. Similarly, Can we have a cursor within a cursor ?

Thanks,
hellomdp.
0
 
LVL 3

Accepted Solution

by:
lwilkin7 earned 75 total points
ID: 11958403
No, you cannot have a cursor within a cursor.

Lloyd
0
 

Author Comment

by:hellomdp
ID: 11960806
ok...thanks.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

November 2009 Recently, a question came up in the DB2 forum regarding the date format in DB2 UDB for AS/400.  Apparently in UDB LUW (Linux/Unix/Windows), the date format is a system-wide setting, and is not controlled at the session level.  I'm n…
Recursive SQL in UDB/LUW (you can use 'recursive' and 'SQL' in the same sentence) A growing number of database queries lend themselves to recursive solutions.  It's not always easy to spot when recursion is called for, especially for people una…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now