Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: migrating from sql server 2000 to oracle 9i-r2
DA Morgan wrote:
>> >> Yes, well, that was not the issue. >> The issue was about '', not about NULL being NULL not being NULL: >> BANNER >> ---------------------------------------------------------------- >> Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production >> PL/SQL Release 9.2.0.6.0 - Production >> CORE 9.2.0.6.0 Production >> TNS for Linux: Version 9.2.0.6.0 - Production >> NLSRTL Version 9.2.0.6.0 - Production >> >> hr_at_O920.CSDB01.CS.NL> select * from dual where null = ''; >> no rows selected >> >> hr_at_O920.CSDB01.CS.NL> select * from dual where null != ''; >> no rows selected >> >> Ergo: '' is treated as NULL. And THAT is NOT ansi compliant.
Daniel,
maybe you should leave the scotch (and try an Irish...) :)
You and Thomas Kyte talk about NULLs - and you and Tom are correct (and I concur, too, by the way). But the issue was *not* about NULLs.
The issue was about empty strings (''). And according to the
ANSI standard, '' is NOT NULL.
Oracle regards it as NULL, and thus is *not* ANSI compliant.
Makes sense now? We've had this discussion before.
-- Regards, Frank van BortelReceived on Sat Mar 12 2005 - 07:09:40 CST
![]() |
![]() |