Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: VARCHAR2: NULL value vs. empty string
NoName wrote:
>>If NULL is not a zero length string, then why does Oracle do this? :- >>SQL> select 'abc'||null from dual; >> >>'AB >>--- >>abc >> >>It should return NULL, should it not?
And that's another non-ANSI compliant behaviour... Look it up: concatenation of a string with NULL yields NULL, concatenation of a string with an other, empty string yields the first string
-- Regards, Frank van BortelReceived on Tue Dec 16 2003 - 15:27:23 CST
![]() |
![]() |