How to stop a cursor without reaching the end

Hello

I would like to know if it is possible to complete a simple cursor based on a condition. For example:
Open c2;
loop
extract the c2 in crec2;
When the exit c2% notfound;

If contion = 1 then

-We let the cursor
exit c2?;

end if;
end loop;

Thanks in advance.
Kind regards.

We leave the cursor

You don't 'let the cursor', you exit the loop.

Just 'exit '. In the same way as you ' leave when c2% could not be found.

After what (end loop) course, you must close the cursor.

You may think using bulk collect and courses around the collection with exit conditions.

Or, if possible, it would be better code output in the SQL logic - why say you are going to get the data you want actually?

All depends.

Published by: Dom Brooks on June 22, 2011 10:25

Tags: Database

Similar Questions

  • How can I stop windows vista without updating the updates

    How can I stop windows vista without updating the updates because it affects my computer in error mode and I have to restore to get vista to startup after I reopen it later

    Hello

    You can change the settings for windows update to check for updates but let me choose whether to download and install them.

    Change how Windows installs or notifies you of updates

    You can also check in the update to the update history recently failed, double-click the update to get the error code and let us know.

    See the Windows updates are installed

    You can also read the following article to reset the Windows Update components and check.

    How to reset the Windows Update components?

  • HELP-my x120e is stuck in a boot loop - without reach the bios logo

    Hello world

    I hope to explain clearly what is my (BIG) problem with my x120e.

    Yesterday, I noticed a strange behavior on my bios. I tried to make some changes for example. Switching fn with ctrl key, which allows the charger usb, or AMD - V technology. With f10, I saved and restarted the computer. CTRL-FN keys has not changed. I went into the bios and I saw that nothing has been recorded. I repeated the process, without success. Without stops could be made. As I turned off the computer.

    After a few minutes, I wanted to turn on the computer, but here's the big problem. The computer does not start. After pressing the power button / computer starts (I hear the fan noise and light on the green power button) but, after 6 seconds, without reach the bios logo, it restarts and it will indefinitely until I stopped him keep the power button.

    What I tried after searching the forums was:

    1. remove the battery, keeping the power for 60 years (and 30) button pressed seconds. Re-connect battery. NOTHING

    2. I removed the system memory, put back them. You try to start. NOTHING

    The netbook is 1 month old. It's very frustrating.

    Can someone help me with this? I live in Albania, no here Lenovo support center.

    Thanks to all those who can help you.

    abvasili


  • How to stop Motion 5 to rename the items?

    How to stop Motion 5 to rename the items?

    For example, I have a folder named "Box" inside this folder are 5 additional folders and in these files are text and circles/squares etc.  Once I have copy and insert the name of the parent is "copy of zone 1", the names of children is now "copy print"1", 1 paper copy etc, and children are also name with a copy to the front and a number in the back.  If you like 50 items in the folder, you need to go to each name and remove the copy, then move to the back of the name and remove the number.  That would make 100 corrections.  If you duplicated "Box" 10 times that would be 500 times I have to delete the copies and 500 times I have to delete the number.  I am an organized person and I do not confuse names like "copy paper 27.

    I only want that this

    'Copy of movement case 12-11'

    to look like this

    "Movement block 12.

    It takes a lot of time to remove the copy at the front and out the number on the back of name.

    In Autodesk Maya 3D they do something similar, it turns 'apples' in 'pasted apples 1 ", so created a script that deletes all the text"stuck"in the name and number on the back the text name.

    I think it's a pretty silly renaming procedure.  Adds text to the front and rear.  Makes me wonder where they got their education.

    David

    David, for starters I can't duplicate what you describe, where things are added to the front and back automatically, you may need to clarify some things.  Looks like what you're saying is you have Group in movement named "Box" If you copy and paste the group, the name of the new group is "copy of copy of box?  Or you add 'Copy from' before the name of the Group at some point before making a copy/duplicate of the Group?

    Movement, like the Finder and many other applications, will add an object in double with 'copy', then add numbers after that. The structure of renaming seems simple enough. For example:

    1. start by a group of layers / named 'box '.

    2. copy and paste "Box" will give you "Box copy.

    3 copy and paste 'Copy of box' will give you «box copy 1"»

    My tests, if "copy" part of the name at the end, only the numbers will be added and increase gradually.  I think that if you get something like "Box copy copy" you have added manually "copy" at the beginning of the name, which is the only way that I could reproduce what you describe. If you don't want to have to remove 'copy' twice, don't start a layer name or "Exemplary" program group. Motion is probably not check if the copy is at the beginning, at the end.

    For what is a way of not having a copy or a number added to the end, it is not a.  It is probably a requirement of how the movement initially creates duplicates of layers/groups and make sure, that it is not destroy the existing layers. This is probably the best. This is similar to the creation of the records or documents in the Finder, just moving, you can go back and rename multiple items with the same name once they are created. If you are uncomfortable with writing scripts, sounds like you are, maybe it's a good option, otherwise you will have to do some manual changes as you go.

  • How to stop multiple self-switching to the address bar every time I open a new tab and try typing something anywhere outside the address bar?

    How to stop multiple self-switching to the address bar every time I open a new tab and try typing something anywhere outside the address bar? As something just wants me to use this integrated search when you type something non-Web-address in the address bar and press to enter. And the most ridiculous thing is that happens repeatedly on as every second, as I just got off the address bar and start typing again, but still he passes me in the address bar, then 3, 4 times like that. And the result is that I don't see the address of this page.

    I think that its has something to do with my AVG Antivirus, because it started the same time a Nation AVG started to appear in each new tab I opened (and which is irritating as me, I've read here on support.mozilla.org and it seems that the only solution is to completely reinstall Firefox, but I don't want to lose all my settings) but when I type something in the address bar and press enter It opens the search results in Google.

    Please try to help me, I love Firefox but I have to switch to Chrome until I fix this.

    Thanks in advance

    First of all, please update Firefox 32. 22 is no longer support is not safe. So, let us know if you still have this problem. Update Firefox to the latest version

  • Satellite Pro M10 suddenly stopped starting or to reach the POSITION

    Hi all, hope someone can help or advise me on what to do.
    My Pro M10 suddenly stopped starting or to reach the POSITION.
    When the switch is pressed, green light turns on and stays on and that of about it, no display and not even the rotation of the fan to the top. :(

    Funniest, it is the battery always fresh and is fine.
    As you know, this model is out of warranty now and I'm technically minded and disassembled laptops before so I don't mind open my machine.

    Just thought I would ask here first before doing so.
    Hope someone can point me in the right direction of what's wrong, have heard a rumor that the M10 with a video fault, but surely would not stop the machine POST'ing would still.

    Thank you very much
    JayZ

    Hi Jay,.

    Difficult to pin-point your problem remotely as you will understand, however, I expect the laptop either emit a series of beeps (in a type long, short of the boss) or else Flash HQ led to give some clues as to the reason for the failure of the POST.

    First I'll try to remove/replace the modules of RAM, hard disk and also the optical drive to see if it improves the situation. Otherwise, I would tend to suspect the motherboard failure.

    Kind regards

  • I have firefox clear history when it closes and it clears my exceptions to pop up windows whenever it closes. How firefox can erase history without deleting the exceptions to the pop-up windows?

    I have firefox clear history when it closes and it clears my exceptions to pop up every time it closes. How firefox can erase history without deleting the exceptions to the pop-up windows? Allow this makes it difficult to play of Facebook games like farmville, because I have to allow him every time, and I have to type in rather than it to automatically. Thank you, Jamie

    Do not remove the navigation, search and download history on Firefox to clear the "Site preferences".

    Compensation of the "Site Preferences" clears all exceptions for cookies, images, windows pop up, installation of software and passwords.

  • How to stop messages that appear on the screen locked when they arrive?

    How to stop messages that appear on the screen locked when they arrive?

    Settings > Notifications > Messages > turn off display on the lock screen. -AJ

  • How to boost my computer without all the fuss?

    * Original title: Boost from Windows 7

    How to boost my computer without all the fuss?

    Please note that if you put a link to virus, I would report.

    Thanks in advance.

    See this:

    http://www.askvg.com/master-tutorial-to-make-your-Windows-7-Super-fast/

  • How to create a Viewer without buying the image? I want to be able to save the images I'm looking a subject without purchase or download.

    How to create a Viewer without buying the image? I want to be able to save the images I'm looking a subject without purchase or download.

    After talking to the Customer Service, I now get it. Thank you.

    That is to say: down arrow recorded a watermark image in the gallery without you buy. You can download an overview lores on your desktop for motorhomes with this same arrow, but it is unfortunately a watermark (unlike the DPC). You can also copy and send a link to the Gallery clients to review before you buy.

  • Change the cursor without hiding the mouse

    Hello everyone
    I need to know if I can change the cursor without hiding the system mouse, I need to choose between the mouse and holding the hand and the normal cursor, the value by default in every where.

    Thank you
    Sall

    safago wrote:
    > what I need, is that I have have a botton and I want when I roll over t he dosnt change at hand I want to contol it.

    Give the instance name of button and disable the pointer above using: Btn.useHandCursor = false;

    --
    Best regards

    Urami

    --


    If you want to send me a message - DO NOT LAUGH at MY ADDRESS

  • Cursor jumps at the end of the text when you edit the item

    I use a Javascript function, toUpperCase() to convert input in a text field.  However, when users would like to change a piece of the data string in the text, the cursor changes a character only before jumping at the end of the text and continuing.  This function causes the worsening users.  How can I keep the cursor in the right place within the chain and use always toUpperCase without the cursor jumps at the end of the string?


    Thank you!

    the best way to test is to remove OnKeyUp = "this.value = this.value.toUpperCase (); ' then check if you still have the problem

    strange that the problem's there even when you replace OnKeyUp with onChange because the function must not be executed until the change is complete. Also replace OnKeyUp, onBlur

    share the results

  • Tab automatically when you reach the end of a field with the number of limited characters

    Hello!

    Is it possible to activate an automatic tab behavior when the user reaches the end of a field with the number of limited characters?

    I'd like the cursor to move to the next field in tab order automatically.

    Possible?

    Thanks for the tips!

    Marcos

    Hello

    What happens if you tried something like the following example? This works using formCalc on the change event for the user's domain is currently typing in:

    fullCount var = 3
    var currentString = xfa.event.newText
    If (Len (currentString) > = fullCount) then
    xfa.host.setFocus ("TextField2")
    endif

    Or, if you prefer javaScript:

    fullCount var = 3;
    var currentString = xfa.event.newText;
    If (currentString.length > = fullCount) {}
    xfa.host.setFocus ("TextField2");
    }

    These work very well.

    I hope this helps!

    Stephen

  • Windows mail. I can't send emails that have pictures. The blue bar times out until it reaches the end.

    I have the windows mail. I can't send emails that have pictures. The blue bar times out until it reaches the end.

    What is the size of all photos of the handset?
     
    Please post any error message in its entirety. You can left click on it to highlight then right click to copy and then paste in this thread.
     
  • Can I transfer my license to upgrade to Windows 7 on a new computer? The system on which it is has reached the end of his life.

    At the launch of Windows 7 I bought one a version upgrade to upgrade XP on my Dell PC to W7 professional.  This PC has reached the end of its useful life, and I intend to give it up (literally).  I would like to transfer the license to upgrade for my Dell Netbook that W7 Starter Edition is installed.  Can I do this?

    Graham.

    Thank you very much, this is very useful.  Can I just confirm what constitutes an acceptable method of removing of Dell PC?  I have to do something to turn off allow it on the Dell PC before removing it?  I can't uninstall it (because the update of XP should be a clean install) so my options are delete and format the hard drive (my supported option, can I use it for storage) or go back to XP using an Acronis Disk image that I kept from the time of the upgrade.  Whatever it is, I imagine that Microsoft have to take my word that I removed?

    Graham.

    Yes, as long as its not in use on the computer. I would restore the Acronis Disk image that had saved you.

Maybe you are looking for

  • Equium A60 - fan runs constantly

    Equium A60. 5 years old. For years, the fan is running constantly. Even in winter, and when little ongoing transformation. Help. Beginner language please.

  • My computer died in service mi. Will not answer no matter what I push.

    Leave MY Mac Pro in average use. I can't answer. I tried the proposed fix didn't work.

  • Time base / real-time display problems

    I am under a layout with no hardware and simulation takes 5 X longer than expected.  But when I exit graph it shows the correct output!  Is there something to put in place the basis of time?

  • xbox account recovery

    I tried to fill out a form to recover my account up to 8 times, I forgot my password is there any links to possibly recover my account for my xbox, thank you. call me Ryan 07412 361865

  • Lower flow display of text in a string indicator.

    I need to display the test in an indicator of the string output, I see the test output in a display string, but it just export all text output at the end of the test. I want the text to scroll display more is attached. Basically, I want to see the ou