If var! = NULL or if the variable is not NULL which is more correct?

Hello Experts

Which of the following is better?


Also when assign us a variable (type nvarchar) null including notation should we use?

new_address = NULL;

or

new_address = ";

declare
new_address ADDRESS. ADDRESS TYPE %;
Start

new_address: = 'a ';
If new_address! = NULL then
dbms_output.put_line(new_address||) e DO ');
end if;

end;

declare
new_address ADDRESS. ADDRESS TYPE %;
Start

new_address: = 'a ';
If new_address is not NULL then
dbms_output.put_line(new_address||) e DO ');
end if;

end;

Thank you

NULL is unknown.

NULL = false NULL

NULL! = NULL also false

----

Ramin Hashimzade

Tags: Database

Similar Questions

  • Why isn't 'if the variable does not equal null"work?

    Pretty simple thing, I thought, but it drives me batty...

    The Captivate 8.

    I have a widget for checkbox and assigned variables to all 6 boxes (framework1, evaluation2... assessment6). I also have a variable called 'null' (thanks to lilybiri). The variable has no value for her.


    So, I in my Advanced actions:


    If assessment1 is not equal to v_null or

    If evaluation2 does not equal v_null or

    If assessmen3 is not equal to v_null

    Le n

    See submit it (button)


    That means that if no the framework1, 2 or 3 etc... are verified, the assessment variables will be 'something' and not 'null' and should trigger showing button, but it does not work...


    Any ideas?


    Thank you!


    Sorry, I give up. You seem not to understand that you need another approach. Especially your answer 1 is not correct, why has the right of v_none, you are not in the mind of the person who checked it? 2 you give the opposite, what happens if the user has archived v_none really because he won't? Anywat that it is not possible to verify this with a single action advanced conditional with two decisions, because the sequence needs to be reversed for the second situation compared with the first situation. Everything should be in a single decision, with THEN/ELSE, but I do not understand the logic, so you can not help.

  • How to check that the variable 'does not contain' value?

    Hello

    I use CP 7.0.1.237.

    We want to use the widget text box for a custom quiz and verify a response. While we understood how to check the existence of certain key words, we are not able to find a way to check that the content does NOT contain certain keywords. For example, we want to ensure that the text entered in this widget does not contain a "Transformation" and "Non-compliant.

    Is this possible at all?

    Thank you

    Anthony

    Anthony, it works perfectly. Created this conditional action with 4 decisions. I used the interaction of training text scrolling in CP8 (because now you can control the variable - which means I might have a Reset button):

    First decision:

    Second decision (the third is similar to the following)

    Fourth and final decision

    I put the variable words (v_first... v_fifth), it's a reflex I use since I shared actions that much. The variable associated to the ETB (you can now reset an empty var in CP8) is v_TextArea and the Boolean value that will decide if positive feedback (StarOK) should be shown is v_TA_OK. If you want to display a negative feedback, put this in the ELSE part of the final decision.

    FYI: it took 15 minutes, including the creation of assets and the variables and tests. Personally I would have needed more time to do it in JS, but that's just me.

    Lieve

  • Value of the variable local not even as indicator

    I use enforcement to highlight to debug a problem. I noticed that when the front panel indicates the Boolean value true, the execution has highlighted this is show as false.

    Why would such a thing happen?

    My request is based on the continuous acquisition model. The problem I'm trying to debug is that somehow my application don't ignore the sequence error when I want it. I thought that it isa condition critical competition, but with highlighted performance I expect to see it happen and I did not.

    I have attached the screen show and the vi. I'd appreciate any help.

    Thank you.

    All shows this small 'F' near the tunnel of the structure is the value of the local variable was the last time it was read. the 'F' will not change magically to something else until the next time the local variable is read, and which depends entirely on the rate of this loop loop. When you perform a execution highlighting, loop rate is very slow and since many other places write so that the indicator via local variables, has no way to tell, from the diagram, that given its value at a time. Only the façade shows the current state, that's what the façade is.

  • Marquee Learning Interaction; Assign the Variable does not transfer all text.

    Captivate v9. The use of the Interaction of learning of text scrolling to capture text user input by assigning a Variable name. On the next slide, insert the Variable in a text caption. The text entered in the previous slide in the scrolling text is truncated. For example, the entry of 2 or 3 sentences (100 + characters) generates only the first 50 or so displayed in the text caption.

    When you inserted the variable in the dialog box did increase the length of the default 50 to what you want?

  • Text added to the text field using the variable does not appear

    Hello

    I have a test field I created dynamically.  If I add some text to it by writing: myField.text = 'text', the text if poster, but if I add text using a variable is nothing.  If I trace trace text in the text field ("text =" myField.text) get good value.

    Someone at - it ideas?

    Best regards

    Chris McLaughlin

    Try to comment out the two lines below and see if it helps...

    ["textField" + guestCueCnt 'c'] .defaultTextFormat plus myFormat;
    ["textField" + guestCueCnt + 'c'] .embedFonts = true;

  • When I delete an email the following does not automatically pop up more

    When deleting, next E-mail is always open. Now it just goes back to the e-mail page. Went in yahoo mail site and he always 'open next E-mail' check the option of choice. 25 just downloaded Firefox automatically a few days ago and that's when I started having the problem.

    I have already tried these things, also is gone in yahoo and changed settings options and restarted the computer. Nothing works, may yahoo email problem.

  • While the loop does not stop until 2 more clicks

    I must say that I'm really not familiar with LV, but Im learning.

    So why is that after I clicked on low stop, I had to click my OK button twice, then my program stopped. Why can't it stop immediately?

    Furthermore, if I want to do some of the dice to table, which wire do I missed?

    Thank you!

    Hi RawtoLV,

    You have a while loop in loop a while. When you run the other while the loop stops when you press the stop button, the inner circle while loop always executes. Since your OK button use latch release, what I noticed is that when you pressed the OK button, it quickly into position from true to false, which never stopped during the operation of loop (maybe because of the wait). Can I ask what are you actually doing with the structure of sequence?

    I would suggest using the event structure in place (http://zone.ni.com/reference/en-XX/help/371361K-01/glang/event_structure/):

    Here are some information about the structure of the event:

    http://www.NI.com/white-paper/3331/en/

    http://www.YouTube.com/watch?v=8eO64fo3Pho

    Warm greetings,

    Lennard.C

  • Whenever I go to download a program on adobe it said the program began for download then creative cloud opens and remains white and the program does not download, which continues?

    Help!

    try the solution 2, CC Office lists the applications as "up to date" when it is not installed

  • Problem with LDAP in the APEX and not in sql query * more

    Hello everyone.

    Hereby, I refer to an existing thread: Query LDAP APEX

    I have a problem using LDAP in the APEX (DB version: 11.2.0.2.0;) APEX version: 4.0)

    I get "Authentication failed" by their SUMMIT. However, when I run it in SQL * more (SQL Developer) (I created it as seen in the referenced forum thread) it works! Can I use my own function, but that looks like reinventing the wheel.
        l_ldap_host := 'oursite.be';
        l_ldap_port := '389';
        l_ldap_domn := 'oursite';
        l_ldap_user := i_username;
        l_ldap_pass := i_pw;
        l_ldap_base := 'ou=oursite,dc=oursite,dc=be';
    
    
        dbms_ldap.use_exception := true;
        
        l_session  := dbms_ldap.init(l_ldap_host,l_ldap_port);
        l_retval   := dbms_ldap.simple_bind_s(l_session, l_ldap_domn||'\'||l_ldap_user, l_ldap_pass);    
        l_attrs(1) := 'name';
        l_attrs(2) := 'title';
        l_retval   := dbms_ldap.search_s(
                        l_session, 
                        l_ldap_base, 
                        dbms_ldap.scope_subtree, 
                        '(sAMAccountName='||l_ldap_user||')',
                        l_attrs,
                        0,
                        l_message
                      );
    
        l_retval := dbms_ldap.count_entries(l_session, l_message);
    We must search the sAMAccountName because that contains our login credentials (dennis.surname). The common name is just our full name (Dennis Surname)


    At the SUMMIT, I have these settings:

    * LDAP host: oursite.be
    * Port: 389
    Use SSL: No SSL
    Use exact DN: No.
    * String DN: ou = oursite, dc = oursite, dc = be
    * Search filter: sAMAccountName = % LDAP_USER %


    When I try to test it I get "Authentication failed" but I don't know why. It works very well in sql * more (in the the same pattern of course!) so I have really no idea what I'm doing wrong. In addition, the message comes instantly and sql * more it takes about a second to authenticate.

    I tried so many things! remove the 'or '. Connect with my name, change 'cn = % LDAP_USER %' filter, connect with dennis.surname and Dennis Surname, using exact DN,... and all the possible combinations of them... Nothing works.

    I can go further by using my own function, but I really want to use the settings of the APEX, because it's so much easier.

    Thanks in advance for help out me!
    Dennis

    Hi Dennis,

    Try this

    The exact use DN Yes value
    Change your DN string to

    %LDAP_USER%@domain
    

    or

    domain\%LDAP_USER%
    

    The authentication uses a simple_bind_s. You must use the same syntax in these text boxes. You actually do a single with bond

    dbms_ldap.simple_bind_s(l_session, 'sAMAccountName=' || l_ldap_user, l_ldap_pass);
    

    It does not work. It's the syntax to use in the search for search_s filter.

    Please keep in mind that the apex_040100 (for apex 4.1) user must connect the rights on the domain server.

  • Changing htmlText in textfield on the stage does not work in CS6 more

    I have a problem in Flash CS6 (MacOS X 10.6, German) with an old FLA file created in Flash CS3:

    Flash CS6 seems to ignore the HTML of the text dynamically.

    There is a dynamic onstage text field with text inside.

    Anti-Aliasing is set to "Readability", "render text as html" is activated, the fonts are included - all right.

    I want to change the text in the textfield with ActionScript (AS2):

    _root.myTextField.htmlText = "this words should appear the"BOLD"< b > < /b > or < i > < /i > italic."

    Strategic outcome in Flash CS3:

    The words must appear in bold or italic.

    Flash CS6 strategic outcome:

    These words should appear in bold or italic.

    "Bold" and "italic" have disappeared...

    This behavior occurs only with textfields already on the scene, no textfields created with ActionScript.

    How to solve the problem?

    Test file: html_text.zip

    your file runs on a pc and fails on a mac.

    You can google something like: mac embed fonts flash cs6 problem

    or you could try embedding fonts dynamically and using css.

  • Why not the type of the variable is a string?

    Hi, I need your help. \(´o `)/

    When I'm "DropDownList.items", the type of the variable dose not become the 'string. '
    Why?

    ------------------------------------------------------------------------------------------ ----------------------------------------
    var ddList = new Array();
    ddList = ["adobe", "DSP", "Japan"]; any value string table

    / * Create window * /.

    var = DLG

    "dialogue {text:"Interface of Script", limits: [200,200,460,350],"+}.

    "panel0:Panel {limits: [10,10,240,140], text:", properties: {borderStyle: "engraved", su1PanelCoordinates:true}, '+}.

    "ddownlist1:DropDownList {limits: [10,20,100,45]}, ' +.

    "button1:Button {limits: [10,55,100,80], text: 'Ok'}, ' +.

    "button2:Button {limits: [110,55,200,80], text: 'Cancel'}}} ';


    var win = new window (dlg, "click on the ok button!");

    for (var i = 0; i < ddList.length; i ++) {}

    Win.panel0.ddownlist1.Add ("Item", ddList [i]);   Add items to doropdownlist.

    }

    Win.panel0.ddownlist1.selection = 0;

    / * When the "ok" button is clicked... * /.
    Win.panel0.button1.onclick = function() {}

    var ddownlistItems = win.panel0.ddownlist1.items;

    for (var i = 0; i < ddownlistItems.length; i ++) {}

    / * If when 'isNaN' command was returned to 'true', while the type of the variable is "string", if it was referred to 'false', so no 'chain '.  *****/

    Alert ("ddownlistItems [" i + "] plus" + IsNaN (ddownlistItems [i]));

    }

    }

    Win.Show ();

    ------------------------------------------------------------------------------------------ ----------------------------------------

    I tried this script, "alert" has been returned "ddownlistItems [0] = false '.

    but the setting of the components dropdownlist used table of "channels".

    Why not the type of the variable is a string?

    Thank you.

    Because you do not test the chain only the index.

    try...

    Alert (ddownlistItems [i] + "=" + isNaN (ddownlistItems [i] .text));

  • VI refuses to run when the published network shared variable is not available

    I have a VI of logging data on my PC that gathers data from several sources, including several shared variable published network hosted on an RT target.

    The problem I have is that the data logger VI refuses to start if the target RT is disabled and the VI is abandoned if the network connection is interrupted.

    Is there an easy way to detect when running, be published these variable network are available and use a placeholder value, if they are not rather than the current behavior of refusing to work?

    I saw many people using data sockets, but I try to avoid the overhead of setting up and testing a loop of treatment relatively complex network on both ends when the network has published shared variables are so simple to use and works perfectly as this abnormal behavior.

    You can replace them with programmatic access (shared variable aperture and friends) and the dummy data placeholders if the variable is not accessible.

  • Bind variables does not not with the process of the page.

    I am under APEX 4.1 and try to use the new send an email page. I like the wizard and everything works when I get statically from SUBJECT and BODY, but when I try to replace variables as bind & P1_FROM the message fails with "Invalid address" because the variable is not passed, it just shows up as & P1_FROM. Any ideas?

    Thank you
    Jess

    Published by: 913824 on February 13, 2012 10:52

    The & P1_FROM needs a point after ".".

    So exactly as shown here

    &P1_FROM.
    

    Published by: Bob37 on February 13, 2012 16:27

  • How to access the variable script proc SQLplus?

    Lets start with the following SQLplus script:

    variable username varchar2 (100);
    Start select user in: user name of double; end;
    /

    print the user name;

    Select * from WHERE = owner all_tables "& username'"




    Issues related to the:

    Why do I get invited to enter a "/" when running the script in SQLplus? Even if I insert a / after the username 'impression' statement I am invited to enter an end delimiter.

    In addition, I would like to access the user name value in the following SELECT statement. However when I as code above the value of the variable is not taken. Instead, the user is prompted to enter a user name.

    No there is no way to 'transfer' of the value of the SQL user name?

    Peter

    You're confusing SQL * more variable substitution (those with '&') and bind variables.

    Replace the "& username" with: username as shown below:

    SQL> variable username varchar2(100);
    SQL> begin select user into :username from dual; end;
      2  /
    
    PL/SQL procedure successfully completed.
    
    SQL> print username;
    
    USERNAME
    ---------------------------------------------------------------------------
    SCOTT
    
    SQL> select * from all_tables WHERE owner=:username;
    

Maybe you are looking for