Does anyone here knows how a while loop works?

The following code works...
DECLARE
zz NUMBER := 1;
BEGIN
While zz < 10
LOOP
zz := zz + 1;
END LOOP;
END;
If I put a prompt in it like so it does not....
DECLARE
zz NUMBER := 1;
BEGIN
While zz < 10
LOOP
prompt Look THEO I am looping...;
zz := zz + 1;
END LOOP;
END;
I get the following error...
prompt Look THEO I am looping...;
ERROR at line 6:
ORA-06550: line 6, column 14:
PLS-00103: Encountered the symbol "LOOK" when expecting one of the following:
:= . ( @ % ;
I get the same kind of error if I put a create, select or pretty much any other statement than an assignment in the loop.
Am I to believe that a while loop in SQL*Plus is particular to what kind of statement is in it?
Any help would be appreciated.

PROMPT is a SQL*Plus command. If you would like to output text to the screen while looping in a procedure you should use DBMS_OUTPUT.PUT_LINE(). This will also require you to use the following command at the SQL*Plus promptSET SERVEROUTPUT ON;Your code will look like thisDECLARE
    zz NUMBER := 1;
BEGIN
  While zz < 10
    LOOP
      DBMS_OUTPUT.PUT_LINE('Look THEO I am looping...');
      zz := zz + 1;
  END LOOP;
END;This will output Look THEO I am looping... 9 times. If you would prefer that it only be displayed 1 time then you can move the DBMS_OUTPUT.PUT_LINE between the BEGIN and WHILE commands.

Similar Messages

  • Does anyone here know how to make a background soundtrack for a Tai Chi Video?

    Good morning,
    Does anyone here know how to make a background soundtrack for a Tai Chi Video in Garageband. I have been looking around at the different sounds and music in Garageband but I have not been able to find anything that would go with the video.
    Here is an example of a Tai chi video if you were wondering
    http://youtu.be/a6pJf2otwv8
    I want to create something like this for a video I did for a fitness gym for a Yoga instructor and Tai Chi instructor.
    Any tips would be appreciated.

    Brandon,
    you will not have to do any importing in GarageBand. Intalling Mainstage will extent GarageBands Loop Library and Instruments Library.
    After you installed MainStage the additional loops and Instruments will show in GarageBand just like all other Loops. you will simply see more loops.
    For example:
    or:

  • Does anyone here knows how to create a login page thru JDBC?

    Anyone here knows how to create a login page which connect to database thru JDBC but not JDBC-ODBC bridge?

    Hi..pls you'll do people here a great good if you could explain yourself better..!
    Anyway if you are trying to connect to an Oracle Database you dont need the jdbc-odbc bridge as oracle provides a special driver for java applets/applications that is "the thin driver" and the "oci driver"..so if you are connecting to Oracle your connection will look like this:
    Class.forName("oracle.jdbc.driver.OracleDriver"); //not sun.jdbc.odbc.JdbcOdbcDriver
    Connection con = DriverManager.getConnection ("blah blah, blah");
    no need for the jdbc-odbc bridge.
    I hope i've answered your question.
    Thanks.

  • HTML5 Code: Does anyone here know how the QT player source code as a fallback for older Safari browsers...like mine?

    I have the code for all but a fallback to QTPlayer.
    AND
    I don't know how to combine a fallback with the HTML5 code so that if someone who DOES have QT Player installed on a newer browser either.
    I'm operating Safari 4.1.3 and cannot update (I'm obsolete...4 years and I'm out of the apple basket and on to the cider mill, it seems).   So I cannot even check to see how it works because I can't make it work for me in the first place.
    I'm really stressed over this and cannot figure this out.
    I keep finding flash fallback code, which doesn't even enter into my equation.  I need to figure out how to fallback to QTPlayer playing .mov files.

    I need to add just one more thing and that is on battery life.  Last night I sat with the rMBP on my lap installing software, surfing the web, answering emails for close to 4 and 1/2 hours.  At the point I took it back to the charger it still was showing a computed battery time remaining of 3.5 hours.
    Today I had two VMs open and took the machine of the charger and sat outside with my dogs for about 30 minutes.  During this time I was working in both VMs, editing and compiling code.  My battery life estimate showed a good solid 4 hours. 
    This is roughly 6 times greater than what I had with my 2010 MBP and it too had a SSD.  I am not sure why but this retina MBP just seems to not work as hard doing anything that caused my 2010 MBP to struggle.
    While the battery life is certainly better than I expected it is clear that load can change that very rapidly. So I think I still need to visit clients with an external battery or charger in hand.  But I don't think I will be quite so scared that my laptop will simply run out of power before I can even get it plugged in.

  • Does anyone here know how to export metaview

    Hi All,
    I can use enterprise link design studio export plan , but I can't find how to export metaview ?
    Appreciate if any help ?
    KY
    Edited by: kyi on Dec 22, 2008 4:13 PM

    Brandon,
    you will not have to do any importing in GarageBand. Intalling Mainstage will extent GarageBands Loop Library and Instruments Library.
    After you installed MainStage the additional loops and Instruments will show in GarageBand just like all other Loops. you will simply see more loops.
    For example:
    or:

  • Does anyone here know how to install vista 64bit on MBP C2D?

    Just ordered a 17" today. Wanna know if I can install vista 64bit on it?
    thanks,
    m.j

    It runs fine and pretty fast. Drivers are a problems, can't seem to find any. I am about to delete it though cause its useless. I just partitioned with boot camp and then popped in the Vista 64 bit CD and it installed it self. took about 30 to 40 minutes. it does look nice though but the warning pop ups are very annoying and will at a certain point drive you crazy.
    good luck
    BoZ
    Macbook Pro Core 2 Duo, Powerbook 12" 1.33   Mac OS X (10.4.8)   ???

  • Hello I have encounted a problem with Photoshop. Normally when you start a new documant, you are given the options to have A4, A3, ect page set ups. These inbuilt page set ups seem to have disapeared, does anyone please know how to fix this? Many thanks

    Hello I have encounted a problem with Photoshop. Normally when you start a new documant, you are given the options to have A4, A3, ect page set ups. These inbuilt page set ups seem to have disapeared, does anyone please know how to fix this? Many thanks Ben  [email protected]

    Hello Trevor
    Thanks for your message. You can custom set pages but there are no preset of page sizes like A4, A3, ect. I cannot click the size preference, nothing comes up
    Ben

  • Does anyone here know anything about parental controls?

    Hey guys! I am an incoming college student, so I recently purchased a shiny new Macbook Pro (which I love!). However, i have an issue. My mother is something of a paranoid android, and wants to install some kind of parental controls. While I really don't mind having them, I have had issues with them being overly strict and blocking completely appropriate content in the past. Does anyone know of a filter that is unobstrusive but effective that I can install? Any assistance is appreciated!
    I use Firefox, if that helps

    There are few third party solutions for this. Try and persuade her to tick an option where it does not block any websites, but it will still log and anything you visit and this log cannot be deleted or modified. It even logs when you are in private browsing! However it is really very simple to overide parental controls.
    I have had experience of this as my mum tried to do the exact same thing!

  • Is anyone here knows how to install face time on my iphone 4s,since it was not yet installed on my iphone..anyone please.

    My concern is how to install facetime apps ob my iphone 4s.,is anyone here have an idea??

    You can't and there are no FaceTime apps to be installed.
    If your phone does no have FaceTime on it already, then there is nothing that you can do to get it except buy a new phone.
    That is it - you cannot get FaceTime on a phone that does not have it.

  • When I log on my computer I receive an error message: apllesyncnotifier.exe entry point not found. Does anyone one know how to fix it?

    Error message when I log onto my computer.
    Does any one one know how to fix this error?
    It states: The procedure entry point Sqlite3_wal_checkpoint could not be located in the dynamic link librery SQLite3.dll

    With that one, I'd first try uninstalling and reinstalling your MobileMe control panel. Does that clear up the error?

  • Does anybody here know how I can compile my java programs?

    I downloaded j2se 1.4.0 and j2se 1.4.1 and for some reason I can't the javac command in the bin directory. There is a command called javaw but I don't know what it does. can anyone help me?

    Please Check whether JRE is installed with the SDK set up. If you are running Windows OS then edit the "AUTOEXEC.BAT" file so that all the commands will run.
    Do this ---
    C:\>edit autoexec.bat
    and at the end of the file add ---
    SET PATH=%PATH%;drive-name\java-installation folder.
    ex
    SET PATH=%PATH%;C:\JDK1.4\BIN;
    save and exit.
    It should work.
    javaw is used to run executable jar files.

  • Does anyone here know anything about Safari extension development?

    About how much time does it take to develop a Sarari extension? About how much would it cost? I'd like an extension developer to develop a custom Safari extension for me if it didn't cost too much. Is this possible? Thank you.

    There are few third party solutions for this. Try and persuade her to tick an option where it does not block any websites, but it will still log and anything you visit and this log cannot be deleted or modified. It even logs when you are in private browsing! However it is really very simple to overide parental controls.
    I have had experience of this as my mum tried to do the exact same thing!

  • Does anyone here understand how to use this feature??

    Hi I think I understand W7 and Toshiba. Some times I have my doubts. I think I have this figured out??? I'm wondering how seniors have even a 50 -50 chance of surviving all this. Good morning Vietnam.
    PS Not expecting a lot of input on this thread However I welcome all replies to my threads
    Dokie!!
    I Love my Satellite L775D-S7222 Laptop. Some days you're the windshield, Some days you're the bug. The Computer world is crazy. If you have answers to computer problems, pass them forward.
    Attachments:
    fnkeys.zip ‏1185 KB

    Brandon,
    you will not have to do any importing in GarageBand. Intalling Mainstage will extent GarageBands Loop Library and Instruments Library.
    After you installed MainStage the additional loops and Instruments will show in GarageBand just like all other Loops. you will simply see more loops.
    For example:
    or:

  • Anyone here knows how to use struts??Please show me some examples

    As above..

    Download Struts and install it in the downloaded binary there are lot of examples provided by the Struts team.

  • Does anyone know how the cutout filter works and is there a way of achieving the same effect without using filters to get more control over final look?

    does anyone know how the cutout filter works and is there a way of achieving the same effect without using filters to get more control over final look?

    Several ways to get similar results.  Image > Adjustments > Posturize with low values similar to what you'd use n Cutout.  This is the most flexible way I can think of as you keep the image in RGB mode with layers intact.  A more radical approach would be to reduce bit depth using Indexed Colour.  You'll need to experiment with settings, try changing Forced to Primaries, and Matte to Foreground Color.  There's no going back from this route, although you can change the mode back to RGB to re-enable layers, adjustment layers etc.
    A nice thing about the Filter gallery filters is that you can change the layer to a Smart object with all the control that gives you.
    Now if only this forum could filter out bizarre content.

Maybe you are looking for

  • IMAQ image out- what's the best way?

    Hello forum, I'm developing an interface to acquire a square image from an NI-DAQmx PCI 6221 on LabVIEW 7.0 and Windows XP. At present I am simply collecting my information from a physical sine wave generator on the bench, but eventually this will be

  • How to find procedures which have changed since the previous day

    Hi All, My requirement is to find out the procedures which have been changed since last day i.e the procedures which were compiled in the previous day. How could I find this using query. Please help me out. Thanks in Advance Regards, Srikanth

  • Music Skips when playing an album in iPhoto

    FROM A PREVIOUS POSTED THAT WENT UNANSWERED: I am using iPhoto 08 to do some slideshows...for a while now, the music keeps skipping! And this is getting on my nerve really...can anybody help me out? I don't think it's the RAM (Just upgraded to 2GIG D

  • ITunes 10.5 hangs during iPhone 4 sync

    Just installed iTunes 10.5 and attempted to sync iPhone 4/4.3.5 several times. The process hangs while "Backing up" with the status bar right under the t in (Step 1 of 5). I've swiped the phone to cancel, which leaves iTunes continuing on as if the p

  • E71 question... Please help

    Can i save all the contacts to memory card instead of using phone memory (not back up contacts to memory card) ? Thank you