Difference between NULL and two single quotes

Hello
Advice me please on what follows.

First we will do an update.

Update table_name set column_name = ";

After update of why following queries return different results?

1. select count (*) from table_name where column_name is null;
2. select count (*) in the table table_name where column_name = ";

I understand the request update set null column values and the first select is the right way to get the number of null values. But I want to know what the second problem with the select statement.
Thank you.

Published by: Lacotte Sajeeva January 15, 2013 21:29

You should not ' equal to ' a NULL string. A NULL string is an unknown value in Oracle. You can't IS NULL or IS NOT NULL.
You should not perform
= NULL
=''
! = NULL
!=''

Hemant K Collette

Published by: Hemant K Collette on 16 January 2013 13:35
Changed to "do not do" for "should not do."

Tags: Database

Similar Questions

  • Difference between AL32UTF8 and UTF8

    Hello

    Our current database version is 10g with CHARSET = UTF8 to support Greek characters. However, the customer wants to switch to 11g (11.2.0.4.0) and the database of test created with CHARSET = AL32UTF8.

    Up to now to insert Greek characters, we have been offering script mentioning set NLS_LANG = AMERICAN_AMERICA. UTF8 and he has been inserting Greek characters correctly. However, it does not work with the new machine. If this setting, execution of the script gives error for the Greek characters "quoted string not properly done".


    I have two questions here:


    (1) is there a difference between UTF8 and AL32UTF8?

    (2) settings NLS_LANG works on character set of database right? What setting I put for NLS_LANG allowing to insert Greek characters or script windows or linux machine to run?


    Thanks in advance.

    Hello

    Answered below:

    -Oracle UTF8 is Unicode 3.0 revision in 8.1.7 and upward. AL32UTF8 is updated with Unicode versions in each major release, Oracle RDBMS 12.1 it is updated to Unicode 6.1,

    Apart from the difference in Unicode version the "big difference" between UTF8 and AL32UTF8 AL32UTF8 has build in support for "Additional characters", which are coded using "Surrogate pairs" (also wrongly called ' surrogate characters"'").

    Oracle UTF8 (Unicode 3.0) stores additional characters in the form of 2 characters, for a total of 6 bytes, using "modified UTF-8" instead of the "standard UTF - 8"(implemented in Oracle 9.2 and upward using AL32UTF8) 4 bytes for an extra character.

    This "modified UTF-8' is also called CESU-8 .

    Practically, this means that in 99% of UTF8 and AL32UTF8 data are the same for * storage * data. Only the additional characters differ in bytes/codes stored between UTF8 and AL32UTF8.

    -the necessary parameters are:

    LANG = el_gr. UTF8

    LC_ALL = el_GR.utf8

    NLS_LANG = 'GREEK_GREECE. AL32UTF8.

  • Difference between hp7612 and hp7610 the printer?

    Hello
    I intend to buy a jet A3 office printer.
    Can someone tell me what is the difference between hp7612 and hp7610 the printer?
    Help, much appreciated.

    Hello

    The HP Officejet 7612 include a duplex unit to print on both sides of the page automatically in the box.

    For the HP Officejet 7610, it's an extra accessory that can be purchased separately and not included in the Cabinet.

    Other than the two models are identical.

    Kind regards

    Shlomi

  • Difference between static and dynamic encryption card

    Anyone tell me the difference between static and dynamic encryption card?

    Hi Rodrigo,

    Public static crypto map - identifies by the peers and traffic to encrypt explicitly. Generally used to host some tunnels with different profiles and characteristics (different partners, sites, location)

    So, when you have the information of the two peers than what policies we're going to use, what is the IP on both devices we normally use static VPN.

    Crypto dynamic map - is one of the ways to accommodate peer sharing the same characteristics (for example, several offices of branches share the same configuration) or peers with dynamic IP addressing (DHCP, etc.)

    For more information, please visit:

    https://supportforums.Cisco.com/document/12013476/crypto-map-based-IPSec...

    Kind regards

    Aditya

    Please evaluate the useful messages and mark the correct answers.

  • What is the difference between Fdisk and Chkdsk programs?

    Hello:

    I don't think I have a common question of OS knowledge and I worked a lot with both, however for years so I forgot everything I used to know.  I was talking to someone Executibles MS-DOS command line and this person I know told me in email and I did not at the moment, but he said the following:

    "Fdisk and chkdsk are pretty much the same.

    Being an old Microsoft OS Engineer I knew it was wrong, however I've been retired since almost 20 years and I have not worked with either for a while.  I looked in the KB for articles explaining the difference between fdisk and chkdsk or define at least the two against each other, but there is no specific article I could find.  I remember the days when the scariest user had a problem, but they ran all third party software on their computer and have installed BETA version software etc so I'm sure you know the drill and this type of person.

    The person who said this about fdisk and chkdsk is one of those people.  It is a really nice guy, but a nightmare to Microsoft when you talk to a convenience store to the BONE for assistance.  Is there someone out there who could you, please, help me and summarize an irrefutable definition or description indicating the differences between fdisk and chkdisk?  I don't remember the basic functions both I widely used both, but too many years have passed and I don't want to sound like a fool trying to write about the differences.

    I'd appreciate any help I want to educate my friend and the intention is to not make this person feel like a stupid either.

    Thank you, and I expect your response.

    Eric

    The two are completely different, one is a format utility the other is a utility disk check

    http://support.Microsoft.com/kb/255867/en-us

    Fdisk was used in earlier versions of victory

    http://Windows.Microsoft.com/en-GB/Windows/Fdisk-FAQ#1TC=Windows-7

  • gain of antenna 0, differences between radio0 and radio1

    On a stand-alone 1131, what is the effect of not having antenna gain set at 0?

    interface Dot11Radio0

    no ip address

    no ip route-cache

    !

    encryption mode ciphers tkip

    !

    encryption vlan 1 mode ciphers aes-ccm tkip

    !

    ssid Private

    !

    ssid Public

    !

    mbssid

    speed  basic-1.0 2.0 5.5 11.0 6.0 9.0 12.0 18.0 24.0 36.0 48.0 54.0

    station-role root

    What is the difference between radio0 and radio1 on a 1131, just 2.4 Ghz vs 5 GHz?

    Hello

    T1 >

    Radio0

    Private SSID

    SSID Public

    Radio1

    Private SSID

    Why not put the two on each radio?

    YEARS - here the SSID PUBLIC and PRIVATE and mapped to radio 0, this means, customers that supports the G radio be able to conenct to two SSID...

    where, the PRIVATE SSID is assgned to Radio 1, which means that customers who are capable of a radio will also be able to conenct... but who are not capable of A guests to conenct to the SSID PUBLIC since its not used at all for a radio...

    Let me know if that answers your question...

    Concerning
    Surendra
    ====
    Please do not forget to note positions that answered your question and mark as answer or was useful

  • What is the difference between SyncToy and LiveMesh, Windows 7

    Can someone clarify the difference between SyncToy and LiveMesh? Thank you.

    * original title - synchronize files and Folders.*

    Hello

    Sync Toy: Sync Toy is a free Power Toy designed by Microsoft that provides an easy to use graphical user interface that can automate synchronizing files and folders

    Windows Live Mesh (formerly Live Meshand Windows Live Sync and Windows Live FolderShare) is a free to use online file synchronization application by Microsoft that is designed to allow files and folders between two computers or more to be in harmony with each other on Windows (Vista and later) and Mac OS X (v. Leopard 10.5 and later) computers or on the Web via Windows Live SkyDrive. Windows Live Mesh also provides desktop access remotely via internet

  • Difference between 'Form' and 'object '.

    I am writing today a guide in my native language and want to understand the difference between 'Object' and 'Form' for Illustrator. We have menu object in the Panel and can find a few options of forms under this menu.

    Also we program this object is:

    In computing, an object can be a variable, a data structure, a function or a methodand as such, is a location in memory value and possibly referenced by an identifier.

    In class-based object-oriented programming paradigm, 'object' refers to an instance of a class where the object can be a combination of data structures, functions, and variables.

    Relational database management, an object can be a table or column or an association between data and entity of database (such as the age of a person concerning a particular person). [1]

    So my question is: If we create a form in artificial intelligence can we call it 'object' and vs. ?

    There is menu item "Create object mosaic" option which works only with raster images. This is why any other object in artificial intelligence is not object?

    Thank you

    "In illustrator is an 'Application based on the objects' any item placed in the drawing area that you can select is called" object "where as".

    a form is an object of two dimension.

    We could say : each form is an object , BUT not every object is a form.

  • Difference between FYI and Notification

    Hi all

    Sorry for the dummy question, but I'm a newbie BPM/BPMN and try to understand better what I use for my modeling process.

    Could you please explain to me the difference between the FYI and Notification? When it is better to use?

    Asked me to send an e-mail notification to users just to let them know where the process is, no manual action is required and the process must continue without interruption.

    Thanks for any help.

    Fairlie

    Hi Fairlie,

    Here is a tool of 2 page that lists all the different activities in BPMN, gateways and Oracle 11g and 12 c BPM events and what they serve each to- https://blogs.oracle.com/soacommunity/entry/bpm_poster_for_bpm_suite

    In your use case where you want to send an email to someone, and no manual intervention is required, use the Notification activity.

    News is an Interactive activity and causes a work item instance appear in the Inbox an end user in the workspace.  The difference between this and other types of interactive activities is that the work item instance does not stop at this activity in the process, but instead continues on the next activity in the process.

    A Notification activity is an automatic activity which does not create an instance of work item in an Inbox in the workspace, but rather sends a message of electronic mail, instant messaging, SMS or voice.

    When the work item instances reach these two activities, they do not stop and continue them automatically the next activity in the process.

    Dan

  • What is the difference between individuals and small businesses?

    What is the difference between individuals and small businesses?

    Hi Nakrit,

    The individual plan provides only a single application license in your Adobe account.

    According to the individual plan, you have the right for 20 GB of cloud storage space.

    However, the business plan gives you an administration console where you can buy the multiple license.

    Under the business plan, each license offers 100 GB of cloud storage space.

    Pricing plans and creative Cloud membership | Adobe Creative Cloud

    Kind regards

    Sheena

  • Difference between Gemfire and SQLFire

    Anyone can list the differences between Gemfire and SQLFire.

    Since both are targeted and databases as an object model and another model more than SQL. Apart from this basic difference if I can get some differences and the reason behind the two products, which would be much appreciated.

    Hello
    GemFire has a slightly different set of objectives: it is designed to be much more flexible (buttons plus) designed to achieve possibly higher performance in some scenarios. For example, you can do a caching prioritized with GemFire (client applications can incorporate a local cache) and it is rich in favour of publication / subscription semantics. Thus, it is possible to realize the event in real time, more scalabe engine architecturees with GemFire more than it is with SQLFire.
      
    On the other hand, SQLFire with relational semantics is easier to understand with a query more powerful engine and support for referential integrity provided out of the box.
      
    Level positioning, GemFire could be better adapted to the 'green field' applications that lend themselves to a design of K - V and SQLFire is best suited for applications where the data model (and so mark requirements) are more complex.
  • Differences between OID and OUD

    Hello gurus,

    What are the differences between OID and OUD.

    Why Oracle release two LDAP directories. Please let me know.

    These two are two LDAP directories.

    Where IO is the dependent database and OUD is not.

  • The differences between CAT and table TAB

    1. What is the difference between cat and TAB?
    2. why TAB does not exist in dict?
    3. that the same situation for cat and TAB?

    Thanks a lot for your answer kindly.

    sys@ORCL > cat desc
    Name Null? Type
    ----------------------------------------------------- -------- ------------------------------------
    TABLE_NAME NOT NULL VARCHAR2 (30)
    TABLE_TYPE VARCHAR2 (11)

    sys@ORCL > tab desc
    Name Null? Type
    ----------------------------------------------------- -------- ------------------------------------
    TNOM NOT NULL VARCHAR2 (30)
    TABTYPE VARCHAR2 (7)
    NUMBER OF CLUSTERID

    sys@ORCL > select * dict where table_name = "CAT";

    TABLE_NAME COMMENTS
    ---------- -----------------------------------
    Synonym of cat for USER_CATALOG


    sys@ORCL > select * dict where table_name = 'USER_CATALOG ';

    TABLE_NAME COMMENTS
    -------------------- -----------------------------------------------------------------
    USER_CATALOG Tables, views, synonyms, and sequences belonged to the user

    You've posted enough to know that, for each position, you will need to provide your version of Oracle 4-digit (SELECT * FROM V$ VERSION)
    >
    1. What is the difference between cat and TAB?
    2. why TAB does not exist in dict?
    3. that the same situation for cat and TAB?
    >
    1, 2, 3 - TAB has been deprecated then don't use it.

    Definitioni of base for those located in the reference database
    http://docs.Oracle.com/CD/B28359_01/server.111/b28320/statviews_2127.htm#sthref1535
    >
    CAT

    CAT is a synonym for USER_CATALOG.
    . . .
    USER_CATALOG

    USER_CATALOG lists all the tables, views, clusters, synonyms, and sequences belonged to the current user. Its columns are the same as those of "ALL_CATALOG".
    . . .
    DICT

    DICT is a DICTIONARY.
    . . .
    DICTIONARY

    DICTIONARY contains descriptions of data dictionary tables and views.
    . . .
    TAB

    TAB is included for compatibility. Oracle recommends that you do not use this view.
    >
    TAB has been deprecated. He looks like the cat because it shows the USER objects, but it does not show the sequences, like the cat.

    If you look at the source code for the views TAB and USER_CATALOG you can see the differences. This code is copyrighted by Oracle Corporation, all rights reserved.

    /* Formatted on 1/1/2013 8:50:07 AM (QP5 v5.115.810.9015) */
    CREATE OR REPLACE FORCE VIEW SYS.TAB
    (
       TNAME,
       TABTYPE,
       CLUSTERID
    )
    AS
       SELECT   o.name, DECODE (o.type#,
                                2,
                                'TABLE',
                                3,
                                'CLUSTER',
                                4,
                                'VIEW',
                                5,
                                'SYNONYM'), t.tab#
         FROM   sys.tab$ t, sys."_CURRENT_EDITION_OBJ" o
        WHERE       o.owner# = USERENV ('SCHEMAID')
                AND o.type# >= 2
                AND o.type# <= 5
                AND o.linkname IS NULL
                AND o.obj# = t.obj#(+);
    . . .
    /* Formatted on 1/1/2013 8:54:45 AM (QP5 v5.115.810.9015) */
    CREATE OR REPLACE FORCE VIEW SYS.USER_CATALOG
    (
       TABLE_NAME,
       TABLE_TYPE
    )
    AS
       SELECT   o.name,
                DECODE (o.type#,
                        0, 'NEXT OBJECT',
                        1, 'INDEX',
                        2, 'TABLE',
                        3, 'CLUSTER',
                        4, 'VIEW',
                        5, 'SYNONYM',
                        6, 'SEQUENCE',
                        'UNDEFINED')
         FROM   sys."_CURRENT_EDITION_OBJ" o
        WHERE   o.owner# = USERENV ('SCHEMAID')
                AND ( (o.type# IN (4, 5, 6))
                     OR (o.type# = 2 /* tables, excluding iot - overflow and nested tables */
                         AND NOT EXISTS
                               (SELECT   NULL
                                  FROM   sys.tab$ t
                                 WHERE   t.obj# = o.obj#
                                         AND (BITAND (t.property, 512) = 512
                                              OR BITAND (t.property, 8192) = 8192))))
                AND o.linkname IS NULL;
    
  • Difference between getDBTransaction and getTransaction

    Hi all
    I have a very basic question. What is the difference between getDBTransaction and getTransaction. Is this good to use them interchangeably? Google reminded me an old post on the forum. Unfortunately, the doc in the post has an invalid link.

    Thank you
    Bala

    I'm assuming you are talking about ADF business components, because you mentioned the method getDBTransaction(), that a specific method of the ADF BC.

    Both methods return the Transaction to the correspondent of the ADF BC ApplicationModule root object.

    getTransaction() is a method that is implemented by the oracle.jbo.server.ApplicationModuleImpl class. The method is defined by the oracle.jbo.ApplicationModule interface, if it can be used in client applications ADF BC and components side BC ADF server.

    getDBTransaction() is implemented in the oracle.jbo.server.ViewObjectImpl and oracle.jbo.server.EntityImpl classes. This method is not defined in the interface client-side oracle.jbo.ViewObject), so it can be used in the components side BC ADF server.

    In fact, the Transaction interface is a superinterface of DBTransaction interface. If you use ADF BC local components (i.e. no remote ADF BC), then the two methods return the oracle.jbo.server.DBTransactionImpl AM root object. If you use remote ADF BC, then the ApplicationModule.getTransaction () method returns an object client that implements the interface of the Transaction and which acts as a proxy for the DBTransactionImpl side of the AM root server-side.

    Dimitar

  • Main difference between OWB and ODI

    Hello

    I have a very long search behind me to know the difference between the two, but the thing the most I found was marketing blah blah blah and not core-facts :(

    Can someone tell me the main difference between OWB and ODI. Please only facts and no marketing blah blah blah :)

    Also, it would be good that you have a reference (link or something else) of your facts for me

    I look forward to your replies

    Hello

    Oracle Warehouse Builder VS Oracle Data Integrator

    BR,
    IM

Maybe you are looking for