PLSQL: For functions like COALESCE(n,m,o,p..) are all n, m, o, p evaluated?

Suppose I only want to pull a number from a sequence if a procedure argument is null:
SELECT COALESCE(in_arg, seq.NEXTVAL) INTO tmp_number FROM dual
Is the nextval always executed, before COALESCE is called?
Same question for logical operators; in oracle do they short circuit?
IF function_one() AND function_two() THEN ...
f1 returns FALSE, does f2 run?

Umm..
With decode its differrent..
SQL> select decode(1,1,1,seq.nextval) from emp;
DECODE(1,1,1,SEQ.NEXTVAL)
                        1
                        1
                        1
                        1
                        1
                        1
                        1
                        1
                        1
                        1
                        1
DECODE(1,1,1,SEQ.NEXTVAL)
                        1
                        1
                        1
                        1
15 rows selected.
SQL> select s.nextval from dual;
   NEXTVAL
         1
SQL> select decode(1,1,1,f2) from dual;
DECODE(1,1,1,F2)
               1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Where the Javascripts files for  functions like doSubmit and confirmDelete?

    Hi,
    I am asking me where Oracle stores the built-in JS functions.
    In the database or filesystem ?
    Thanks
    Bertrand

    Bertrand,
    They are in the file system in a directory referenced by the alias "i". If you're using XE on Windows this may be a little confusing as it uses Webdav.
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen
    http://sourceforge.net/projects/plrecur

  • Why are the chargers for iPhones breaking so easily in the same area all the time?

    Me & my family all have iphones. So in that being said we all have our own chargers. But every 4 to 7 months the front end of where the cable begins to break & tear. This isnt the first time it has happened. I think there should be a new design for the cabels in that certain area.

    Tell Apple:
    http://ww.apple.com/feedback
    I have never had an issue with a cable nor has anyone that I persoanlly know.

  • For today's random glitch.. incorrect responses are all gone.

    After working through a problem with the results page continue button not working, I now have a full quiz (10 questions, no breaks) that is missing the incorrect answer captions.  I KNOW I didn't delete these.. and I can't find any way to restore them.  I've tried copying the caption from a new question slide with no luck.
    Any help would be greatly apprecated.
    Thanks,
    Brian

    That was it..  and I have to recind my "I KNOW I didn't..." statement, because while trying to figure out why continue wasn't working on the results slide, I do remember playing around with the failure levels.
    Thanks, again!

  • How to use java api for function activity in embed oracle workflow?

    because i can't install standalone oracle workflow successfully.
    pls tell me how to use java api for function activity in embed oracle workflow?
    are there some patch or pulg-in package?
    ths a lot...........

    The Java Function Activity Agent is not certified for Oracle Workflow embedded in Oracle Applications. Installing standalone workflow should be a lot easier than what you have found, although it looks like you did hit a Pentium 4 issue with the Oracle Universal Installer. I suggest you contact Oracle Support or Oracle Consulting for assistance.
    because i can't install standalone oracle workflow successfully.
    pls tell me how to use java api for function activity in embed oracle workflow?
    are there some patch or pulg-in package?
    ths a lot...........

  • Wireless keyboard operation on ipad - how to handle touch functions like email garbage can?

    Received gift of wireless keyboard for my ipad. Managed bluetooth pairing and am stumped on functions other than simple typing. Can any keys be used for functions like the garbage can in email?

    As far as I know it just replaces the onscreen keyboard, the iPad is a touch device and you will need to touch the screen for some things. The function keys for display brightness control, iPod and volume control also work.

  • How do I watch my iTunes movies, tv shows on my mac without having to download them all to my HD?  I really want my Mac to function like my Apple TV since I have just moved and don't have my TV for another few weeks. Help please?

    How do I watch my iTunes movies, tv shows on my mac without having to download them all to my HD?  I really want my Mac to function like my Apple TV since I have just moved and don't have my TV for another few weeks. Since I purchased my three Apple TV. I have had no need to download any of my movies to my Mac.  Which has been great.  However, I remember that I used to now have to do this... or did I?  I am just frustrated because I want to stream all this stuff vice haveing to waiting for it all to download fill up my Mac's HD and then just delete. Someone help please?

    Play the movie in iTunes to stream it.
    Click the cloud icon to download it.

  • How to use an external start button for 6024E w/ sc-2345, I would like it to function like a start button in LabView but I don't know how to connect the external button to the sc-2345's connector block

    I am confused as to how to connect my external start botton. I would like it to function like a start button on a front panel of a VI. I would like to use the +5V on pin 14 but I really don't know where to go from here. Any guidence for a novice would be most appreciated.

    phod,
    This is the LabVIEW Real-Time forum, so I suggest that in the future that you post this type of question to the Multifunction DAQ forum.
    For the simplest solution you will have to connect your button to a digital line of your board, consult the sc-2345 user manual for a diagram of where these lines are exposed. You will have to connect your start button in series with a line that is high, such as your 5V pin or another digital line. Then connect this to a digital line that will be your start trigger.
    Your program can poll the digital line that is connected to your button in a while loop and when it goes high, it lets the rest of the program execute. For the programming, I suggest you take a look at the shipping examples that come with LabVIEW. If yo
    u have LabVIEW 7.0 go to Help>>Find Examples. Open Hardware Input Output>>Traditional DAQ>>Digital Input and Output>>E Series for some examples of digital I/O programming with E-series boards.
    Hope that gets you started.
    Gerardo

  • Does oracle have similar functionality like MsSql "for xml path('')"

    Does oracle have similar build in functionality like MsSql “for xml path(‘’)” , or in another word, it can enforce the result set(multiple rows) into ONE line such kind of presentation way.
    Thanks in advance. Any help would be greatly appreciated.

    Here I would like specify my question mnore clearly,
    CREATE TABLE t(
    line NUMBER(3),
    site VARCHAR2(4),
    phase VARCHAR2(5),
    test VARCHAR2(25));
    INSERT INTO t VALUES (1, '0100', '*','1111111111111111111111111' );
    INSERT INTO t VALUES (2, '0100', '=','2222222222222222222222222' );
    INSERT INTO t VALUES (3, '0100', '=','3333333333333333333333333' );
    INSERT INTO t VALUES (4, '0100', '*','4444444444444444444444444' );
    INSERT INTO t VALUES (5, '0100', '=','5555555555555555555555555' );
    INSERT INTO t VALUES (6, '0200', '*','6666666666666666666666666' );
    Here I want to retrieve the 'line' column information in ONE line way
    select line from t I want the result is like '1,2,3,4,5,6'
    Any generous help would be greatly appreciated!!!

  • Function module like ENQUEUE and DEQUEUE for function location.

    Hi All,
    I should be highly appreciate if any one help me for locking function module like ENQUEUE and DEQUEUE
    for function location.
    Thanks
    Shaw

    Hi,
    You can either use the standard way of locking by using :
    data:lv_varkey          TYPE rstable-varkey.
    concatenate functional_location sy-mandt into lv_varkey .
    *   Lock table
        CALL FUNCTION 'ENQUEUE_E_TABLEE'
          EXPORTING
            mode_rstable   = 'E'
            tabname        = 'IFLOS'
            varkey         = lv_varkey
          EXCEPTIONS
            foreign_lock   = 1
            system_failure = 2
            OTHERS         = 3.
    *     Unlock table
          CALL FUNCTION 'DEQUEUE_E_TABLEE'
            EXPORTING
              mode_rstable = 'E'
              tabname      = 'IFLOS'
              varkey       = lv_varkey.
    Or,
    As mentioned above create a lock object via transaction SE11.
    Go to transaction se11:
    --> Enter lock object name e.g EZ_IFLOS
    --> Click on create
    --> Enter description
    --> Click on tables tab
    --> Enter 'IFLOS' as table name
    --> select lock mode
    --. click on save and activate.
    2 function modules will be created as DEQUEUE_EZ_IFLOS and ENQUEUE_EZ_IFLOS .
    Regards.

  • Is there a System Menu for special Functions, like WIPE CACHE?

    On my DX, there was a method of pressing and holding the Menu button & Power up button to get to special "Systems" functions like WIPE CACHE & FACTORY RESET. Does such a procedure exist for the Razr ?  I know about SAFE MODE and was able to see that work. (Although my finger hurt having to press the up/down Volume buttons for so ling. )

    While I have done this quite a few times (and this has made my phone a bit more responsive when it gets sluggish) you should be careful and watch what you are doing. If you select the wrong menu option you may end up having to contact Verizon for support.
    Wiping the cache partition
    Power the phone off
    Press and hold the volume down, volume up and power button until the recovery screen appears.
    Use the volume down button to select "Recovery" and then press the volume up to confirm the selection.
    The phone will do a little reboot thing, display the dual core logo thing and then an Android next to a triangle with a yellow exclamation point will appear. At this point press the volume up and volume down buttons at the same time.
    If you did everything correctly you are now at the Android System Recovery Screen. To clear the cache press the volume down button until you have selected "wipe cache partition". Press the power button to confirm the selection and it will wipe the cache partition.
    Once the cache is cleared press the volume up button to select "Reboot System Now" and press the power button to confirm the selection. If the "Reboot System Now" is already selected then just press the power button to confirm the selection and the phone will reboot.

  • If any function like greatest or least for addition,subtraction and multi?

    if any function like greatest or least for addition,subtraction and multi?
    there are two columns 'a' and 'b'...i have to add the values in column wise
    a b add
    10 30 -->40
    20 40 -->60
    IS there any function?

    Hi,
    794244 wrote:
    if any function like greatest or least for addition,subtraction and multi?
    there are two columns 'a' and 'b'...i have to add the values in column wise
    a b add
    10 30 -->40
    20 40 -->60
    IS there any function?Do you mean something like
    FUNCTION_X (a, b, c, d, ...)that would return the sum of all those numbers?
    No, not that I know of. If there were, it would be harder to use than
    a + b + c + d + ...The first is a comma-delimited list of columns, with a function name and parentheses.
    The second is a +-sign delimited list, with nothing else needed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Searching for Calculation function like "@TONUMBER()" (Business Rules)

    Hello,
    I am searching for a calculation function like "@TO_NUMBER()" or a workaround.
    My current problem is as follows:
    @CONCATENATE("AAA_",(@SUBSTRING("BBB_2010",4) - 1) doesnt work --> SUBSTRING function returns "2010" (as STRING value, but then I cannot substract 1).
    Besides I am missing another function like @TO_STRING(), too, because @CONCATENATE("AAA_",2010) doesnt work - @CONCATENATE expects STRING and not NUMBER.
    Can anybody help?
    Thanks & kind regards
    André

    Hi Krish,
    thanks, but I would like to avoid using cdfs...
    I have another idea, but it doesnt work, too (I opened another thread):
    calculating with temporary variables doesnt work - does anybody knows the reason (and have a workaround for me)?
    Herewith my code:
    VAR varLoopAmount = 15;
    VAR varShiftValue = 1;
    LOOP(varLoopAmount)
    "Schadenquote BOZ" = "Schadenquote BOZ" + @SHIFT(&GCS_SchwaRue_Historie,varShiftValue,@ICHILDREN(&GCS_SchwaRue_Historie));
    varShiftValue = varShiftValue + 1;
    ENDLOOP;
    error message: Detail:(1012004): Invalid member name [varShiftValue]
    Thanks for help
    André
    Edited by: user10660408 on 04.06.2010 12:25

  • How to log input parameters for Function Modules?

    Hi,
    I need to create a Logging system to trace input parameters for function modules.
    The log functionality could be done by developing a class method or a function module (For example 'write_log'), and calling it within each function module that I want to log. The 'write_log' code should be independent from the interface of the Function Module that I want to log.
    For example, I'd like to write a function/class method that can log both these functions modules:
    Function DummyA
       Input parameters: A1 type char10, A2 type char10.
    Function DummyB
       Input parameters: B1 type char20, B2 type char20, B3 type char20, B4 type Z_MYSTRUCTURE
    Now the questions...
    - Is there a "standard SAP" function that provide this functionality?
    - If not, is there a system variable in which I can access runtime all parameters name, type and value for a particular function module?
    - If not, how can I loop at Input parameters in a way that is independent from the function module interface?
    Thank you in advance for helping!

    check this sample code. here i am capturing only parameters (import) values. you can extend this to capture tables, changin, etc.
    FUNCTION y_test_fm.
    *"*"Local Interface:
    *"  IMPORTING
    *"     REFERENCE(PARAM1) TYPE  CHAR10
    *"     REFERENCE(PARAM2) TYPE  CHAR10
    *"     REFERENCE(PARAM3) TYPE  CHAR10
      DATA: ep TYPE STANDARD TABLE OF rsexp ,
            ip TYPE STANDARD TABLE OF rsimp ,
            tp TYPE STANDARD TABLE OF rstbl ,
            el TYPE STANDARD TABLE OF rsexc ,
            vals TYPE tihttpnvp ,
            wa_vals TYPE ihttpnvp ,
            wa_ip TYPE rsimp .
      FIELD-SYMBOLS: <temp> TYPE ANY .
      CALL FUNCTION 'FUNCTION_IMPORT_INTERFACE'
        EXPORTING
          funcname                 = 'Y_TEST_FM'
    *   INACTIVE_VERSION         = ' '
    *   WITH_ENHANCEMENTS        = 'X'
    *   IGNORE_SWITCHES          = ' '
    * IMPORTING
    *   GLOBAL_FLAG              =
    *   REMOTE_CALL              =
    *   UPDATE_TASK              =
    *   EXCEPTION_CLASSES        =
        TABLES
          exception_list           = el
          export_parameter         = ep
          import_parameter         = ip
    *   CHANGING_PARAMETER       =
          tables_parameter         = tp
    *   P_DOCU                   =
    *   ENHA_EXP_PARAMETER       =
    *   ENHA_IMP_PARAMETER       =
    *   ENHA_CHA_PARAMETER       =
    *   ENHA_TBL_PARAMETER       =
    *   ENHA_DOCU                =
       EXCEPTIONS
         error_message            = 1
         function_not_found       = 2
         invalid_name             = 3
         OTHERS                   = 4
      IF sy-subrc = 0.
        LOOP AT ip INTO wa_ip .
          MOVE: wa_ip-parameter TO wa_vals-name .
          ASSIGN (wa_vals-name) TO <temp> .
          IF <temp> IS ASSIGNED .
            wa_vals-value = <temp> .
          ENDIF .
          APPEND wa_vals TO vals .
        ENDLOOP .
      ENDIF.
    ENDFUNCTION.

  • What is the best method to parse a java file for function names

    st="class";
    while (StreamTokenizer.TT_EOF != tokenizer.nextToken ())
       if (StreamTokenizer.TT_WORD == tokenizer.ttype)
        if (tokenizer.sval.toLowerCase().equals(st.toLowerCase())){
        System.out.print (tokenizer.nextToken() + " "); //prints the class name on the console
        fileOut.print (tokenizer.sval + " "); //prints the class name to a file
    }The above program searches a .java file for classes. I want to modify it so that it searches for function names as well. After several hours of figuring out various ways to do it with StreamTokenizer, I still havnt found a way. There seems to be no way to go back, i.e. no previousToken method, in StreamTokenizer.
    Is it possible to do search for using StreamTokenizer, and are there easier ways of doing it?

    Simple string tokenizing isn't an effective way to do this. You probably want something like ANTLR.

Maybe you are looking for

  • How to change the message in a cell of a ssrs report to a hyperlink dynamically

    Hi, I am developing a ssrs report. I want to change the message to hyperlink for a particular message and not all messages of a column. and link it to another report. for e.g-if a cell of the column has values A,B,C then I want to change only cell wi

  • Posting of p&l accounts in prior periods at go live with wbs

    Hi gurus, As client requirement is to see profit and loss reporting from january in case of may 2014 golive, is there any issue if we post monthly entries of p&l accounts with relevant cost center/wbs with jan to april posting dates and run project s

  • Main screen gray - external display works

    Hi, My PB G4 17" 1.0 GHz has a problem with its main screen. However it is still lit, it doesn't show anything. I can still operate the brightness and see the screen become more bright or dim. When I attach a second display, I see video there. So the

  • Switching from a PC to Mac - anything I should know?

    I'm from Canada, planning on purchasing the absolutely shiny BlackBook, with 2gb RAM and 200gb harddrive online. I have never used a Mac before, and was just browsing through the forum. The Mac seems to have far less problems than a PC. I'm looking f

  • Public Views for the Design Environment

    Hi, I want to select Information from the Public Views for the Design Environment. I need details from the mappings, but can not found the informations. I can't found it in all_iv_xform_maps and all_iv_xform_map_components. I build a mapping and user