tags:

views:

31

answers:

1

Hi I have a question that if we declare a variable and then do not set it explicitly to null value then it would be null outomatically ,i mean that the below code will return true or false ? thanks

DECLARE @val CHAR(4)



If @val =  NULL
+1  A: 

Neither. Comparing anything to NULL gives NULL.

dan04