No distinction between NULL and space

No distinction between NULL and space. When you see the resultset, in PL/SQL developer, you will see that the NULL value is in yellow colour while column data having spaces is in white colour. In the new tool, there is not distinction between the two, so each time we will have to use the NVL function to determine the value in the column, which I would not like to do.

An option in Preferences could be created, so that it was possible to choose as values NULL would be shown, as already it occurs in other tools.

Similar Messages

  • NULL and Space value in ABAP

    Hi All,
           I like to know, is it NULL and Space value is same in ABAP, if it is not how to check null value.
    Thank you.
    Senthil

    everything is correct though some answers are not correct.
    A Database NULL value represents a field that has never been stored to database - this saving space, potentially.
    Usually all SAP tables are stored with all fields, empty fields are stored with their initial value.
    But: If a new table append is created and the newly-added fields do not have the 'initial value' marked in table definition, Oracle will just set NULL values for them.
    as mentioned: There is no NULL value to be stored in an ABAP field. The IS NULL comparison is valid only for WHERE clause in SELECT statement. WHERE field = space is different from WHERE field IS NULL. That's why you should check for both specially for appended table fields.
    If a record is selected (fulfilling another WHERE condition) into an internal table or work area, NULL values are convertted to their initial values anyway.
    Hope that sheds some light on the subject!
    regards,
    Clemens

  • NULL and SPACE

    Hello Gurus:
    I have had to use BOTH 'null' and 'space' (ofcourse I tried 'initial' too...) when selecting data from PRPS table, otherwise all the required records were not fetched. I had to do this on two different occassions. The first is a SAP provided field and the other is customer's enhancement. I have cut-paste the two code blocks. Any ideas why?
    Thanks in advance,
    Sard.
    ***********(1)**************
    select posid objnr func_area zzfunct from prps into
                    corresponding fields of table it_wbs
                              where func_area is null or
                                    func_area eq space.
    ************(2)**************
    select prps-pspnr prps-posid prps-post1
       into (wa_test1-pspnr, wa_test1-posid, wa_test1-post1,
       from prps
      where prps-posid in s_wbs and
            ...                 and
           ( prps-zzmlind is null or prps-zzmlind eq space ).
    append wa_test1 to it_test1.
    clear wa_test1.
    endselect.

    Hello Richard,
    the Requirement to check for NULL corresponds to the definition of the database (field) within the DDIC. Check the flag initialize (it has also some documentation).
    This flag is intended to be used if the definition of the db table is changed at SAP while the table already is used at customer side.
    After deploying the corresponding patch or upgrade such a changed definition may result into the need to convert all entries. For tables with many entries this would result into inacceptable downtime. So such changes are done without the initialiazation/conversion of existing entries.
    The tradeoff is the syntax you noticed.
    Kind regards
    Klaus

  • Difference between Null and null?

    What is the difference between null and NULL?
    When is each used?
    Thanks,

    veryConfused wrote:
    There is a null in java, but no NULL. null means no value. However, when assigning value, the following is different:Although the empty String has no special role. Null means, the referential type is not assigned (doesn't refer) to a specific object. The empty String is just another object though, so seeing it or pointing it out as something special when it actually isn't at all (no more special than new Integer(0) or new Object[0]) just adds to the confusion.

  • VARCHAR2:: How to differnciate between NULL and empty string '' ?

    Hello to all,
    I'm looking for a possibility to differnciate between NULL and empty string '' in column of type VARCHAR2.
    I have an application relying on that there is a difference between NULL and ''.
    Is it possible to configure ORACLE in some way ?
    Thanx in advance,
    Thomas

    try check if a varchar variable has an empty string
    by checking its lengthAnd that would accomplish what? But see for yourself:
    DECLARE
      v_test VARCHAR2(10);
    BEGIN
      v_test := '';
      DBMS_OUTPUT.put_line(LENGTH(v_test));
      v_test := NULL;
      DBMS_OUTPUT.put_line(LENGTH(v_test));
    END; C.

  • What is the difference between "= NULL" and "IS NULL" in SQL?

    Hi,
    I believe there is a difference between "= NULL" and "IS NULL" comparsion, but I couldn't find it. Anyone knows the difference?
    Thanks,
    Denny

    Aha, thanks:
    SQL> create table william_test_tab (col binary_double);
    Table created.
    SQL> insert into william_test_tab
      2  select rownum / (rownum - 1) from user_tables where rownum < 4;
    select rownum / (rownum - 1) from user_tables where rownum < 4
    ERROR at line 2:
    ORA-01476: divisor is equal to zero
    SQL> insert into william_test_tab
      2  select 1d * rownum / (rownum - 1) from user_tables where rownum < 4;
    3 rows created.
    SQL> select * from william_test_tab;
           COL
           Inf
      2.0E+000
      1.5E+000
    3 rows selected.
    SQL> select * from william_test_tab where col is infinite;
           COL
           Inf
    1 row selected.
    SQL>

  • Where is the association between applications and Spaces screen configured in Mountain Lion?

    Where is the assocation between Applications and Spaces screen configured in Mountain Lion?
    In 10.6, I had FileMaker come up in Space 2, and it still does in 10.8 but I don't know how to change it.
    Anyone know?

    Right-click the icon in Dock and select Options

  • Difference between NULL and ''

    Hi All,
    Is the below right?
    NULL is not stored as a value in a field. Its an internal bit that is set to indicate that the value is unknown.
    Blank is stored as a value in the field. Because of that we can perform all kinds of comparisons with blank value, while we cant do the same with NULLs
    Regards,
    aak

    user605246 wrote:
    Hi All,
    Is the below right?
    NULL is not stored as a value in a field. Its an internal bit that is set to indicate that the value is unknown.
    Blank is stored as a value in the field. Because of that we can perform all kinds of comparisons with blank value, while we cant do the same with NULLs
    Regards,
    aakYou are corerct in that NULL is not stored as a value in a field, but sorta/kinda wrong that it is an internal bit set to indicate that the value is unknown.
    If the NULL column(s) is/are the last column(s) in the table, then null values are not stored at all. The basic structure of a row stored on disk is (highly simplified)
    col1length|col1data|col2length|col2data|col3length|col3dataSo, given a row with col1 = 'ABC', col2 = 'Hello' and col3 null what is stored is:
    3|ABC|5|HelloHowever, if col2 is null and col 3 = 'Hello' then what is stored is:
    3|ABC|0|5|HelloSo the length byte is set to 0 to indicate that the column is null. Although the actual storage mechanisims for other data types differ from varchar2 example above, the 0 valeu i nthe length byte always indocates a null, and trailing null columns take 0 bytes of storage.
    John

  • Difference between NULL and two single quotes

    Hi,
    Please advice me on the following.
    First let's do an update.
    update table_name set column_name ='';
    After updating why do following queries return different results?
    1. select count(*) from table_name where column_name is null;
    2. select count(*) from table_name where column_name ='';
    I understand update query set the column values to null and first select statement is the correct way to get the number of null values. But I want to know what's wrong with the second select statement.
    Thank You.
    Edited by: Sajeeva Lakmal on Jan 15, 2013 9:29 PM

    Sajeeva Lakmal wrote:
    Hi,
    Please advice me on the following.
    First let's do an update.
    update table_name set column_name ='';
    After updating why do following queries return different results?
    1. select count(*) from table_name where column_name is null;
    2. select count(*) from table_name where column_name ='';
    I understand update query set the column values to null and first select statement is the correct way to get the number of null values. But I want to know what's wrong with the second select statement.
    Thank You.
    Edited by: Sajeeva Lakmal on Jan 15, 2013 9:29 PMhow can I reproduce what you report?

  • Difference between NULL and nil?

    I've searched but can't find a clear coherent answer. Could someone spell this out for me?
    Thanks

    command-double-click is your friend
    /* A null pointer constant. */
    #if defined (STDDEFH) || defined (_needNULL)
    #undef NULL /* in case <stdio.h> has defined it. */
    #ifdef _GNUG_
    #define NULL __null
    #else /* G++ */
    #ifndef __cplusplus
    #define NULL ((void *)0)
    #else /* C++ */
    #define NULL 0
    #endif /* C++ */
    #endif /* G++ */
    #endif /* NULL not defined and <stddef.h> or need NULL. */
    #undef _needNULL
    #ifndef NULL
    #define NULL _DARWINNULL
    #endif /* ! NULL */
    #ifndef nil
    #define nil NULL
    #endif /* ! nil */

  • Difference between NULL and INITIAL

    Hi All,
           I just wanted to know that if we have a statement such as 'IF VBAP-KWMENG IS INITIAL' or 'IF VBAP-KWMENG IS NULL' what is teh exact difference and where are they used. Is it that null is used for CHARACTER fields?
    TIA

    Hi,
    An <b>Initial Value</b> is set for all the predefined data types
    fo ex: type    Initial value
            b        0
            c        " "
            i        0
    so when an object is created,the start value explicitly given by you is taken by that else initial value is taken.
    <b>NULL Value</b> is Initial value of an empty column in a row of a database table.Null values can be processing using Native SQL statements, but they have no equivalent as the content of data objects in ABAP. Only the WHERE addition enables a special condition IS NULL for null values. Changing Open SQLstatements (INSERT, UPDATE, MODIFY) generally do not create null values, provided that you are not processing a view that does not comprise all columns of a database table. However, depending on the database system, you can also display empty strings as null values. Null values can still arise in database tables if the new columns are appended to filled tables. When reading with the Open SQL statement SELECT , null values can be created by aggregate functions or an outer join, but they are converted to initial values of the correct type when passed to data objects.
    Please reward points if you feel it helps you
    Thanks,
    Sowjanya

  • Difference in Null and Empty String

    Hi,
    I have been wondering about the difference between Null and Empty String in Java. So I wrote a small program like this:
    public class CompareEmptyAndNullString {
         public static void main(String args[]) {
              String sNull = null;
              String sEmpty = "";
              try {
                   if (sNull.equalsIgnoreCase(sEmpty)) {
                        System.out.println("Null and Empty Strings are Equal");
                   } else {
                        System.out.println("Null and Empty Strings are Equal");
              } catch (Exception e) {
                   e.printStackTrace();
    This program throws Exception: java.lang.NullPointerException
         at practice.programs.CompareEmptyAndNullString.main(CompareEmptyAndNullString.java:10)
    Now if I change the IF Clause to if (sEmpty.equalsIgnoreCase(sNull)) then the Program outputs this: Null and Empty Strings are Equal
    Can anyone explain why this would happen ?
    Thanks in Advance !!

    JavaProwler wrote:
    Saish,
    Whether you do any of the following code, the JUnit Test always passes: I mean he NOT Sign doesnt make a difference ...
    assert (! "".equals(null));
    assert ("".equals(null));
    You probably have assertions turned off. Note the the assert keyword has nothing to do with JUnit tests.
    I think that older versions of JUnit, before assert was a language keyword (which started in 1.4 or 1.5), had a method called assert. Thus, if you have old-style JUnit tests, they might still compile, but the behavior is completely different from what it was in JUnit, and has nothing to do with JUnit at all.
    If you turn assertions on (-ea flag in the JVM command line, I think), the second one will throw AssertionError.

  • Difference b/n null and ""

    hi all
    can any one tell me the difference between,
    String a = "";
    String a = null;
    Which one is better to use ???

    Strings are unimmutable but it is wrong to say that
    Strings are final.True.
    They are both different things. final is a
    visibilty modifier Nope. Final has nothing to do with visibility.
    however Strings are
    objects.What is more, if you attempt to change a
    String object , you create a new String object.Not really. There is no "attempting to change" a String because there is no means to do so. str = someOtheString; isn't an attemp to change a String object. It just assigns a different reference to the variable, exactly like it would for any other object, mutable or not.
    Maybe, it is better to say that Strings are some
    different properties than other objects.
    Because they are unimmutable.Strings are different than other objects in some ways, but none that are relevant to this discusion. And there are plenty of other classes that are immutable as well. Immutability really isn't relevant for the difference between null and an "empty" object though.

  • Difference between ANY and ALL operators

    I am learning the basics of ANY and ALL operators.
    Retrieving all employees in Dept 30 whose sal is greater than ANY employees in Dept 20
    SQL> SELECT * FROM EMP;
         EMPNO ENAME           JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7369 SMITH           CLERK           7902 17-DEC-80        800                    20
          7499 ALLEN           SALESMAN        7698 20-FEB-81       1600        300         30
          7521 WARD            SALESMAN        7698 22-FEB-81       1250        500         30
          7566 JONES           MANAGER         7839 02-APR-81       2975                    20
          7654 MARTIN          SALESMAN        7698 28-SEP-81       1250       1400         30
          7698 BLAKE           MANAGER         7839 01-MAY-81       2850                    30
          7782 CLARK           MANAGER         7839 09-JUN-81       2450                    10
          7788 SCOTT           ANALYST         7566 19-APR-87       3000                    20
          7839 KING            PRESIDENT            17-NOV-81       5000                    10
          7844 TURNER          SALESMAN        7698 08-SEP-81       1500          0         30
          7876 ADAMS           CLERK           7788 23-MAY-87       1100                    20
         EMPNO ENAME           JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7900 JAMES           CLERK           7698 03-DEC-81        950                    30
          7902 FORD            ANALYST         7566 03-DEC-81       3000                    20
          7934 MILLER          CLERK           7782 23-JAN-82       1300                    10
    14 rows selected.
    SQL> SELECT * FROM EMP WHERE DEPTNO=20;
         EMPNO ENAME           JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7369 SMITH           CLERK           7902 17-DEC-80        800                    20
          7566 JONES           MANAGER         7839 02-APR-81       2975                    20
          7788 SCOTT           ANALYST         7566 19-APR-87       3000                    20
          7876 ADAMS           CLERK           7788 23-MAY-87       1100                    20
          7902 FORD            ANALYST         7566 03-DEC-81       3000                    20
    SQL> SELECT * FROM EMP WHERE DEPTNO=30;
         EMPNO ENAME           JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7499 ALLEN           SALESMAN        7698 20-FEB-81       1600        300         30
          7521 WARD            SALESMAN        7698 22-FEB-81       1250        500         30
          7654 MARTIN          SALESMAN        7698 28-SEP-81       1250       1400         30
          7698 BLAKE           MANAGER         7839 01-MAY-81       2850                    30
          7844 TURNER          SALESMAN        7698 08-SEP-81       1500          0         30
          7900 JAMES           CLERK           7698 03-DEC-81        950                    30
    6 rows selected.
    SQL> SELECT * FROM EMP
      2  WHERE SAL>ALL
      3  (SELECT SAL FROM
      4  EMP WHERE DEPTNO=20)
      5  AND DEPTNO=30;
    no rows selected
    SQL> SELECT * FROM EMP
      2   WHERE SAL>ANY
      3   (SELECT SAL FROM
      4   EMP WHERE DEPTNO=20)
      5   AND DEPTNO=30;
         EMPNO ENAME           JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7698 BLAKE           MANAGER         7839 01-MAY-81       2850                    30
          7499 ALLEN           SALESMAN        7698 20-FEB-81       1600        300         30
          7844 TURNER          SALESMAN        7698 08-SEP-81       1500          0         30
          7521 WARD            SALESMAN        7698 22-FEB-81       1250        500         30
          7654 MARTIN          SALESMAN        7698 28-SEP-81       1250       1400         30
          7900 JAMES           CLERK           7698 03-DEC-81        950                    30
    6 rows selected.From a book by Damir Bersinic:
    An easy shorthand enables you to remember the distinction between ANY and
    ALL. If a query condition is >ANY, each row in the result set is greater than the lowest value returned. When a query is >ALL, each row in the result set is greater than the highest value returned.
    He meant ; If a query condition is >ANY, each row in the result set is greater than the lowest value returned by the subquery. Didn't he?
    I couldn't find ANY and ALL operators in 10g SQL Reference? Are these operators being replaced by anything?
    Message was edited by:
    for_good_reason

    Look this
    >ANY------- means more than minimum
    Ex: sql> select empno,ename,job from emp
    where sal>ANY(select sal from emp job='CLERK');
    w/o using >ANY the query will be
    sql>select empno,ename,job from emp
    where sal>(select min(sal) from emp job='CLERK');
    >ALL-------- means more than the maximum
    Ex: sql> select empno,ename, job sal from emp
    where sal> ALL(select Avg(sal) from emp Group by deptno);
    w/o using >ALL the query will be
    sql> select empno,ename, job sal from emp
    where sal> (select max(Avg(sal)) from emp Group by deptno);
    sandeep

  • Numbers and Spaces not working well together

    I'm having a problem with Numbers while using spaces. When I have multiple spreadsheets open between two different Spaces, Numbers jumps to the spreadsheet that was opened first when trying to enter data into the second... I hope this is clearer than mud.
    Anyway, I'm not sure why this is happening. It's VERY annoying, but I don't know if it's a Numbers issue or a Spaces issue. Suggestions?

    There is an old thread about a problem between Numbers and Spaces:
    http://discussions.apple.com/thread.jspa?messageID=7436873
    as an end user, I am unable to say which is the wrongdoer.
    Yvan KOENIG (from FRANCE mercredi 23 juillet 2008 14:18:59)

Maybe you are looking for