What does the usage of CURSOR word mean in an SQL statement?

Hey folks,
Please check out the following query and do please explain me what does the usage of CURSOR keyword in an SQL statement mean.
select deptno,cursor(select ename from emp a where a.deptno=b.deptno) from dept b;
well, the output was like this,
DEPTNO CURSOR(SELECTENAMEFR
10 CURSOR STATEMENT : 2
CURSOR STATEMENT : 2
ENAME
CLARK
KING
20 CURSOR STATEMENT : 2
CURSOR STATEMENT : 2
ENAME
SMITH
JONES
SCOTT
ADAMS
FORD
30 CURSOR STATEMENT : 2
CURSOR STATEMENT : 2
ENAME
ALLEN
WARD
MARTIN
BLAKE
TURNER
JAMES
6 rows selected.
40 CURSOR STATEMENT : 2
CURSOR STATEMENT : 2
no rows selected
Your favour'll be deeply appreciated.
Cheers,
PCZ

This returns a non-square result set. Each row of the result is a deptno and then a result set of the enames in that deptno.
This can be useful when you need to send a lot of data to a client application in a single query that would otherwise contain a lot of redundancy. It tends to be a relatively unusual construct (I've only found one situation where it was appropriate in my career) and requires some relatively sophisticated understanding on both the database and client sides.
Justin

Similar Messages

  • What does the "yellow section"  "other" files mean under hard disk storage?

    what does the "yellow section"  "other" files mean under hard disk storage?

    david just to right of your initial post is a column entitled "More Like This." Check out some of the posts that seem similar.

  • HT201210 What does the do not disturb selecton mean? under settings

    What does the 'do not disturb' selection mean under settings?

    It allows you to not be disturbed by calls, messages, E-Mail notifications, etc. You can also set it for certain times, like from 10:30pm to 6am

  • What does the square and capital n mean in safari

    What does the square and capital n mean in safari it's right next to the battery meter

    HI and welcome to Apple Discussions...
    If you have installed any new apps, (games?) that could indicate a symbol for it.
    Carolyn

  • What does the cloud with downward arrow mean when trying to download a game from app store?

    what does the cloud with downward arrow mean when trying to download a game from app store?

    Hey there ArmidaKers,
    Welcome to Apple Support Communities.
    This article provides information about accessing your past purchases from iTunes in the Cloud, and it should answer your question about the download icon that you’re seeing when browsing the App Store on your iPad.
    Download past purchases - Apple Support
    So long,
    -Jason

  • What does the upside down question mark mean???

    what does the upside down question mark (¿) mean??? its a collection of dem together like ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿
    what does it represent??? how can we read it??           

    Where do you see it?
    Debugging?
    Email?
    Importing an image?
    Converting a PDF?
    Sounds like a corrupted font or munged Unicode interaction...

  • HT201210 what does "the firmware is not compatible" mean?

    what does "the firmware is not compatible" mean?

    it's been rooted or Jailbroken you will not get help here. via rules of the site  google what you asked it can be fixed

  • What does the PRIN setting in MAX mean for my Dalsa CL-C8-6000A Camera?

    I am using PCI-1424 with Dalsa CL-C8-6000A Camera. The
    integration setting in MAX allows me to set the integration time using PRIN. But what does the number mean? How do you I convert it to time units (seconds,say)?

    Dalsa uses the PRIN line to control its integration time based on the pixel clock of the camera. So to convert PRIN to time units, you first need to do know the frame rate you will be working at. This will allow you to then calculate the pixel clock and thusly the amount of time for say 1000 pixel clocks.
    One consequence of this is that as you change your frame rate, your integration time will also change (since your pixel clock is now faster or slower).
    Jack Arnold
    National Instruments

  • What does the icon on my battery mean?

    hello nokia lebanon what does the exclamation mark (?) shown at the battery icon means ?
    Moderator's note: The title was edited. A better subject was provided.

    Hi NicolasMansour,
    What's your phone's model? If this is for a Windows phone, can you verify if this  is the icon that you're seeing? If yes, that means the battery power or state of the battery isn't known at the current time. See: What do the icons on my phone mean? If you're referring to a different phone or a different icon, would you mind telling us its model and sending us a screenshot so we can further check?
    We look forward to your reply. BTW, congratulations on your first post.

  • What does the "Local Area Connection* 12" mean?

    using the commands below(win 8.1 professional):
    netsh wlan set hostednetwork mode = allow ssid=myWifiName key=myWifiPwd
    netsh wlan start hostednetwork
    In Windows 7, the commands will generate "Wireless Network Connection 2"(I think the reason is that there already exists a connection called WLAN. So it starts from number 2).
    In Windows 8.1, the commands will generate "Local Area Connection* 12"(I could not figure out the reason why the number is 12 and what the asterisk means???).
    I could not stop myself from thinking why the number starts from 12 and what the asterisk means? I could not get useful info from google. So I registered an account. Could you help me please ? thanks.

    Windows makes several "simulated" network adapters for various purposes. For example, if you're on an IPv4-only network, but you want to connect to an IPv6 computer on the internet, Windows can create a simulated network adapter that tunnels the IPv6 traffic
    through your IPv4 network.
    There are actually quite a few of these simulated network adapters.  Since they usually quietly take care of themselves, and they don't correspond to any actual network hardware that you (the end-user) can see or touch, Windows will hide them by default,
    to avoid clutter.
    Now suppose Windows just started numbering all the adapters with the same naming scheme ("Ethernet 1", "Ethernet 2", "Ethernet 3", . . ., etc.).  Then by the time you actually install your actual NIC, it would probably get a name like "Ethernet 7". 
    But since Windows hides the first 6 network interfaces, you'd see a listing that only includes one NIC: "Ethernet 7".  And you'd probably say "stupid Windows doesn't know how to count."
    So instead, we have two numbering schemes.  Real, physical NICs get numbered "Ethernet ###" (or "Wi-Fi ###", etc.) while all the hidden network adapters get "Local Area Connection* ###".  That way, the NICs that you see will be numbered
    starting from 1, even though there are a big pile of hidden network interfaces that were installed first.
    What does the asterisk mean?  The asterisk used to be the signal that the NIC was a hidden NIC.  Older versions of Windows named all visible NICs "Local Area Connection ###", and hidden ones were distinguished by adding an extra asterisk. 
    These days, we try to avoid using nerdy jargon like "Local Area Connection" when talking to you, so we changed the naming pattern to "Ethernet".  But since hidden NICs don't matter, we kept their old naming pattern with the asterisk.
    If you're curious, you can see all the network interfaces on your system with this PowerShell command:
    Get-NetAdapter -IncludeHidden
    (I'm the engineer that invented and implemented Windows's current NIC naming policies.)

  • What does the padlock on I-Tunes mean?

    I just bought my Nano today and having troubles. I hooked it up and it automatically downloaded my songs on it. But now it's got a padlock at the bottom of screen by the bar that shows how much memory is used and what's left on my I-Pod and the list of songs are not black for me to click and move. What does the padlock mean?
    thanks
    Chris
    Nano    

    The padlock icon indicates that you have the iPod set to auto transfer. That's also why the songs are 'greyed out' and not selectable or editable.
    If you want to change this, you'll have to select manual transfer instead.

  • What does the half moon near battery mean? It just appeared today on my I pad., What does the half moon near battery mean? It just appeared today on my I pad.

    I opened up my I pad this morning and noticed a half moon symbol in the top right corner of the screen, near the battery symbol. What does it mean or what does it do?
    Sellecklvr

    Do not disturb
    iOS: Using Do Not Disturb

  • Re "App Store" on the dock - what does the number that is ringed mean

    Attached to the APP symbol in the dock is a red circile with a number shown. What does thise number mean ?

    the number of updates available for your software.

  • What does the field "flags" in EVT_EntryInfo mean?

    Would you please tell me what the field "flags" in EVT_EntryInfo means?
    How many kinds of flags are there? And how about the similar fields in the
    other structures?
    Any associated information would be helpful.

    Hi Sharon,
    This is among a number of items related to changes in the business engine that have been requested by many customers, however, it is not on the road map for a near-term release. I encourage you (and all customers) to submit enhancement requests for these types of features, since that carries a good deal of weight when features are prioritized.

  • What does the apple wit a gear mean

    What does it mean when my ipad wont turn on and just showsan apple with a gear on it?

    What to Do When Your iPad Won't Turn On
    http://ipad.about.com/od/iPad_Troubleshooting/ss/What-To-Do-When-Your-Ipad-Wo-No t-Turn-On.htm
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/TS3281
    iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
    http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
     Cheers, Tom

Maybe you are looking for

  • How do i get a refund on my iCloud storage plan ad i downgraded

    I recently upgraded my storage plan thinking i needed more on my iCloud's but looks at the storage and had not even used half so i downgraded a few minutes later, how do i get a refund on the money i didn't need to spend on a bigger plan? Thanks Mega

  • Can't log in to AirPort Extreme but I am connected to the network

    So I am trying to log into my AirPort Extreme base station. My password is not working. I am able to connect to the internet and the rest of the network, I just can't log into the Base station through the AirPort utility. I have other wireless device

  • Crystal Report Parameter not showing in IPAD

    Hi All,  I create simple Purchase register report  by using Crystal report with date parameter My problem is that report not working on Ipad and its showing blank space .   The report working fine on ipad when i run report without parameter. Kindly t

  • Cannot log into Application Loader, why?

    Hi I was trying to preview an ebook I am in the process of publishing. I got the Application Loader login popup but no matter how many times I try to login with my correct details - I get the same error: There is a problem with your login information

  • Can't find IE10 binary ! HELP

    Hi, I want to install IE10 in my virtual machine which have windows 7 with IE8, but I can't find the binary of IE10 in the official website ! I can't find links to download IE10. Please help me to find this. Thank you for the support.