8
I am beginner in Sql server, I am in doubt regarding the following code:
declare @var nvarchar(50) = null
declare @bool bit
if (@var = null)
set @bool = 1
else
set @bool = 0
print @bool
The variable @bool returns as 0, even if I declare the variable @var null.
Wouldn’t it be to return as 1 ?
See: http://answall.com/questions/87514/null-%C3%A9-equals-a-n
– Marconi