Home Forums Article Discussions Article Discussions by Author Discuss Content Posted by James Travis Understanding the difference between IS NULL and = NULL RE: Understanding the difference between IS NULL and = NULL
alexd1980
Valued Member
Points: 72
More actions
December 15, 2002 at 7:45 pm
#444424
Strange:
I issue this
DECLARE @val CHAR(4)
If @val = NULL
select 'Yup1'
else
select 'Nop1'
SET @val = NULL
select 'Yup2'
select 'Nop2'
there is a result:
----
Nop1
(1 row(s) affected)
Nop2
?