Simple if statment not working

I try to write simple query for SQL statment
==================================================
BEGIN
stmt varchar2(200);
stmt='select dummy from dual';
IF stmt = 'X' THEN
DBMS_OUTPUT.PUT_LINE('X');
ELSE
DBMS_OUTPUT.PUT_LINE('Unknown');
END IF;
END;
=================================================
BUT GIVE ME GENERAL ERROR ORA-06550+PLS-00103
I Don't have experiance on PL/SQL .
Thanks in advance ...

user12010537 wrote:
I Don't have experiance on PL/SQL .If you have no knowledge about PL/SQL then you should read the PL/SQL handbook: http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/overview.htm
This is probably a good starting point for you:
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/overview.htm#sthref96
Hints as to why your code doesn't work:
you haven't declared your variable in the right place.
SQL statements don't work like that in PL/SQL - you select into a variable.
assigning a value to a variable is different from checking equality. ie. := vs =
Hopefully the hints coupled with your reading should help you spot where the problems are in your code. If you're still stuck or have questions after working through it yourself, we'll be happy to help.

Similar Messages

  • Simple short cuts not working in CC?

    Does anyone know why simple commands are not working in Illustrator CC (Copy, Paste, Undo) This is such an irritating problem as these short cuts are so frequently used. My cloud software is up-to-date. Having upgraded my software I would prefer not to have us CS5 to combat this problem.

    Hi Vaibhav,,
    Thankx for the prompt help!!
    I'm using Submit to SAP button only and I do have xACF installed on my local m/c. I'm able to use buttons and validations on the form but I'm not able to get the values in my WDynpro ABAP Appl. For Eg. : and internal table is bound to a table UI in adobe iForm , I'm able to add row (using formcalc/JScript eventing in Adobe) but I'm not able to get the changed internal table in my WDynpro ABAP application after submit button is pressed.
    Any help will be highly appreciated.
    Regds,
    Aryan

  • PCI Simple Communications Controller not working

    PCI Simple Communications Controller not working on hp pavilliong6-1003tx

    Hi
    Download, save & install --
    Windows 7:
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-94322-2&cc=in&dlc=en&lc=en&...
    Restart system after installation.
    Regards
    Visruth
    ++Please click KUDOS / White thumb to say thanks
    ++Please click ACCEPT AS SOLUTION to help others, find this solution faster
    **I'm a Volunteer, I do not work for HP**

  • I downloaded Windows 10 and my Simple Pass is not working.

    I downloaded Windows 10 and now my Simple Pass is not working. I get a message that HP Connected Remote isn't responding and to be sure the service is running. I went under programs and repaired it but I still get the same message. Thanks in advance for your help. Please don't make it too complicated. 

    DUPLICATE POST
    Please see: https://discussions.apple.com/thread/5513386?tstart=0

  • Simple button script not working

    I am using AS2 and need help figuring out why this simple button script is not working:
    stop();
    buttonWS1.onRelease = function(){
                        gotoAndStop("Stage1and2_Boss",4);
    buttonWS2.onRelease = function(){
                        nextFrame();
    //end
    My buttons are the square letter-puzzles below. They are images that I converted to "symbols" (specifically, buttons). I put their names as above (buttonWS1, buttonWS2, etc.) in the "instance names" boxes.
    I have no idea what is going on. Please help!

    Hi -
    1. Yes, buttonWS2 is the instance name
    2. The only code attached to it is the code I pasted above.
    3. onRelease does not execute because my trace statement does not appear in the output
    Here is the modified code for buttonWS2:
    buttonWS2.onRelease = function(){
                        trace("clicked!");
                        nextFrame();
    Question: It shouldn't matter if I have commented-out code within that set of codes should it?:
    buttonWS2.onRelease = function(){
              //if (puzzleschosenarray[0] == 2 || puzzleschosenarray[1] == 2) {
              // cannot be chosen -- make button non-functional
              //else{
                        //puzzleschosenarray[roundnumber-1] = 2;
                        trace("clicked!");
                        nextFrame();

  • Data Binding: Simple code does not work.

    hi... the following simple code is used to display the ename field for a record selected in scott.emp on the console. the code is placed in an event handler. it is as follows:
    DCBindingContainer bindings = ctx.getBindingContainer();
    DCControlBinding binding = bindings.findCtrlBinding("ename");
    String Name = (binding != null) ? binding.toString() : "";
    System.out.println(Name);
    is the code above correct????
    if so, why it does not work???
    thanks for every help in advance & best regards.

    Hi,
    please check the UIModel.xml file for the page if the binding name is "name". The code you have is the same code we published in our QBE workshop and it works there. The only difference is the name of the control binding. So please check if the binding name exists. (e.g. it could be ename1 instead of ename)
    Frank

  • InDesign DPS: Simple animation does not work in folio?

    I'm building a simple recipe app using InDesign CS6, using the Digital Publishing tools.
    On one page I applied an animation, "fly in from bottom" to an object.
    When I eventually build the folio and view it on my ipad with the Adobe Content Viewer, the animation does not work on that page.
    I've watched a couple tutorials on how to use the animation tools, how to set the path, etc. but none of them mention any other steps for getting the animation to work once you build the folio.
    Am I missing something?
    Thanks!
    Bruce

    Okay, I'm gonna try helping out on this....  I don't think layers have any effect on this, or at least I haven't noticed they do, the just help keep you organized and maybe for arrangment...
    So....
    You can just lock the background, it isn't involved, it is just the background.
    1. Make your button to open/start the sequence and make your finished state and an empty box.  In this case the button the button is just a text frame.  The finished state is a shape, text frame and two lines grouped (to make an "x" for the close button).  In your case it will be your image sequence and the button to close it.  Have all the elements of the finished state grouped.
    2. Select both groups.  In the object states panel, hit the new button.  you should now have a multistate object with two states.  One empty state and one state with your sequence, etc..
    3. Now select your open button.  In the button panel, choose the add action button "+" and choose Got to State (or go to next state) and make sure the object is the multistate object you just created.  For the state, choose the state with your sequence.
    4. Now select your multistate object.  In the object states panel choose the state with your image sequence and close button.  Select your close button.  Go to the buttons panel and add an action to go back to the empty state.
    Test it out, it should work fine now.  I don't have an image sequence handy, but you may have to mess with the autoplay settings, etc.  but it should work just fine.
    Notes of interest:  As buttons display only as raster on an iPad, I find it best to make a clear button on top of the button graphic.  That way the button can be vector. and the clear box becomes raster.
    I really, really reccomend watching some of the videos on Adobe TV, they explain and review a bunch of this.  Also, there is an app called DPS Tips App by Bob Bringhurst for free on the Apple Store, he explains all the goodies quite well.  You can also use Wallaby to convert indesign animation to flash and then HTML5, but that gets more complicated and it can also have a load delay. Good Luck!

  • Simple keyboard commands not working in CS6..?

    Am no longer able to navigate around a large document by pressing the space bar (changing the cursor temporarily to the hand tool) or zoom in or out by using command-space bar or option-command-space bar. In both Illustrator and Photoshop.
    I'm hoping there's a very simple solution that I just can't find as it's really messing with my workflow. Please help.

    Hi Nicholas Petropoulos,
    I am sorry but even i am running out of options now.
    Try these.
    Make sure you do not have any browser open when you use Illustrator.
    If you are using a magic mouse or Wireless Keyboard.
    Try disconnecting them and check the performance.
    Also when the issue happens, do you have to force close the application to make it work again?
    The mouse and other options do not work on Illustrator. Are you able to use the mouse any where else on the machine when the issue happens ?
    Regards,
    Nikhil Gupta.

  • Simple Interactive PDF not working

    Once again I'm stumped. I'm attampting to create a simple slide show which animates from one image to the next with just a previous and next button. The project seems to work fine when using the preview mode within InDesign CS6 (8.0.1), but when I export the document it will not work.
    When I open the interactive PDF in Acrobat and attempt to click on the next and previous buttons, an icon appears of a Hand with a black down arrow on the hand?
    Any thoughts as to what I might be doing wrong?
    Thanks.
    — John

    Simple slideshow? How?
    My guess is you're using MSOs which are unsupported in PDF.
    Bob

  • Big mystery - simple animation now not work safari and chrome

    A simple edge animation - basically a slide show with a start and stop button - which definitely worked some weeks ago with Chrome now does not work - nor with Safari.
    http://peachesincrime.com/swf/HardlyStrictlyBluegrass2012/HardlyStrictlyBluegrass2012.html
    First thought is that both of those browsers have changed their scripting behavior and "so sorry Edge users"
    But having noted that there is no fundamental difference between that and all the other animations on http://peachesincrime.com/underthehood.html I reduced the stage size from 1388 x 933 to 800x600 and it seems now to run. I have not yet ascertained what the top limit is.
    Customer wants to maintain resolution or even increase it in the future to show images in full glory on retina screen resolutions.
    Is this a problem with Edge and is there any way round this?
    thanks

    I have updated the animation with images which match the stage size precisely. Initial testing suggests that it works now with chrome but so far on one machine tested, safari seems to run the animation but at at 1/20 the speed of the other browers.
    for anyone interested in trying to figure what is causing all this I have moved the original faulty files referred to above to another folder http://peachesincrime.com/swf/HardlyStrictlyBluegrass2012-2/HardlyStrictlyBluegrass2012.ht ml

  • Select statment not working with variables

    Hi experts,
    Iam trying to select some data using the follwoing code
    with radio buttons r6 & r7.
    If r6 selected,it takes from parameter and
    if r7 selected it takes from select options...
    data: l_datbi type a005-datbi,l_datab type a005-datab.
        if r6 = 'X'.
          l_datbi = pvalid.
          l_datab = pvalid.
        elseif r7 = 'X'.
          l_datab = svalid-low.
          l_datbi = svalid-high.
        endif.
    select vtweg matnr knumh datbi datab                      into corresponding fields of i_itab
                          from A004
                          where kappl eq 'V'
                          and kschl eq pkschl
                          and vkorg eq pvkorg
                          and vtweg in svtweg
                          and matnr in smatnr
                          and datab le l_datab    ####### 
                          and datbi ge l_databi.  #######
    This select statement is not working.
    It is taking only one value at a time.(r6 value or r7value)
    What might be the reason...?
    reward gurarenteed
    maggy

    Hi,
    You are trying to equate your low value with end date and high value with start date..
    The correct logic will be,
    data: l_datbi type a005-datbi,l_datab type a005-datab.
    if r6 = 'X'.
    l_datbi = pvalid.  "Start Date
    l_datab = pvalid.  "End Date
    elseif r7 = 'X'.
    <b>*l_datab = svalid-low. "Wrong</b>
    <b>l_datab = svalid-high. "Right</b>
    <b>*l_datbi = svalid-high.  "Wrong</b>
    <b>l_datbi = svalid-low.  "Right</b>
    endif.
    select vtweg matnr knumh datbi datab into corresponding fields of i_itab
    from A004
    where kappl eq 'V'
    and kschl eq pkschl
    and vkorg eq pvkorg
    and vtweg in svtweg
    and matnr in smatnr
    and datab le l_datab #######   "This also doesnt look
    and datbi ge l_databi. ####### "right to me, please check
    Hope this helps..
    Sri

  • MDX simple case statement not working?

    hi all - any idea what is wrong with this MDX statement? it is returning blank. I am trying to add a calculated measure using the below code but it is not working. thanks for the help.
    CASE WHEN [Accounts].[Account Name].CURRENTMEMBER = "Cash" THEN
    ([Dates].[Hierarchy].currentMember.lastChild, [Measures].[Measures].[Amount]) END

    If you are checking for the 'Cash' member of the Account Name hierarchy, do you need to do something like this?
    CASE WHEN [Accounts].[Account Name].CURRENTMEMBER IS [Accounts].[Account Name].[Cash] THEN([Dates].[Hierarchy].currentMember.lastChild, [Measures].[Measures].[Amount]) END
    Regards,
    MrHH

  • Simple Mask Effect not working in Flash 8 Pro

    I recently updated to Flash 8 pro.I'm having a wiered
    problem.First I was having problem applying masking.I applied a
    masking effect in a movie clip and when view the movie instead of
    showing the effect it shows my masking shape that is a
    rectangle.When i move the play head in the movie it shows me the
    effect, im trying to achieve but when I hit ctrl+enter to test the
    movie, it does not work.Then another thing was I tried to apply a
    Fade in effect and even that does not work.Any suggestion would be
    appreciated.As im having these problems in the player, so I assume
    there is something wrong with the player.I have Flash Player 9
    installed.I unistalled and re installed a new copy,Still did'nt
    help. I am

    Hi,
    Are you sure that you set your Mask layer to a Mask? Double
    click the icon int he right of the Layer name and set the Layer
    type to a mask.
    And regarding the Fade, I guess you may miss some thing, let
    me know the steps you have done to create your Fade effect?
    hope this helps

  • Zooming out in example "Simple Graph" does not work.

    In Measurement Studio, VC++, the feature "Zooming out" does not work. I only can zoom in a graph by drawing a rectangle with the left mouse button.

    There isn't a built in "zoom out" functionality with the graph. There are several zoom modes of the graph, but if you want to zoom out, say with a right click or a key press, you would have to implement it yourself as it is not built-in.
    Best Regards,
    Chris Matthews
    Measurement Studio Support Manager

  • Simple button scripts not working in AS2

    Hi there,
    I am at my wits end. I've tried about 2 dozen tutorials word for word and they don't work and I just keep getting lots of strange errors.
    I have a very simple 4 frame scent with a forward and backward arrow on each frame to link them together. I have an artwork layer, a button layer and an action script layer. The action script layer contains stop(); and the following script in the buttons layer. I adjusted the gotoAndStop frame number accordingly for each frame. Below is an example of one frame. I ran them from frame 5 to 9 as the stop feature wouldn't work on the first keyframe.
    leftButton.onRelease=function(){
    trace("gotoAndStop(9)");
    rightButton.onRelease=function(){
    trace("gotoAndStop(6)");
    When I test the movie (publish it) the buttons don't work at all. I've tried many times to no avail. It just remains frozen on frame 5 and the arrows do nothing.
    Here is a screen shot of my file.
    http://marthalodge.com/Picture2.png
    Thanks for any help.

    Regarding the numbers, I was referring to instance/variable names, not frame labels.
    As far as errors go, the following is errant in that it is missing a closing parenthesis, but it also doesn't make much sense.  What are you expecting it to trace?
    trace(gotoAndStop("eight");

Maybe you are looking for

  • Can I use iCloud storage to upgrade my 4s to IOS 8.0.2?

    IOS 8.0.2 won't install on my iPhone 4S due to a lack of storage. My current iCloud storage amount is 4.8GB. The update requires 4.7GB of storage to update. Can I use the iCloud storage to upgrade the phone? If so how do I set that up?

  • No mail visible in Web, but visible in client

    Hi, One user has a strange problem. When using Web Access he has no mail in the "Inbox". The "Cabinet" and "Sent Items" are ok. The little "thermometer" in the right hand corner show 27% utilisation. If I use the client, I can see all his mail .....

  • A question about calling classes

    Hi, I have a question regarding software design so that each class is independent of other. public class A     public void methodA()              B m_B=new B();           String strA=m_B.getBString();           System.out.println(strA); public class

  • Problem with resource bundle messages written inside script of jsf included

    Hi, I have a main jsf page with the name Details.jsp.In this page I included Contacts jsf page.I am using resouce bundle for my application.I written all the output text tags with this resouce bundle keys.And I written the Details main page javascrip

  • 45 Challan for Capital goods

    How to create 45 challan for capital goods without payment of excise duty.....for capital goods material... Error in J1IF01 is The mat. doc. does not have materials relevant for subcontracting... Plz guide me on this.... Thanks in advance Santosh