Solved

Embedded Cursors

Posted on 2004-09-01
6
550 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Increase Agility with Enabled Toolchains

Connect your existing build, deployment, management, monitoring, and collaboration platforms. From Puppet to Chef, HipChat to Slack, ServiceNow to JIRA, Splunk to New Relic and beyond, hand off data between systems to engage the right people.

Connect with xMatters.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Recursive SQL in UDB/LUW (it really isn't that hard to do) Recursive SQL is most often used to convert columns to rows or rows to columns.  A previous article described the process of converting rows to columns.  This article will build off of th…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

717 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