I have asked this question before in this forum and they told me that it will return an empty result set. I want to know that if I set the column with null values, will it also return an empty result set? (Note: ANSI_NULLS is OFF)
SELECT 'A' FROM T WHERE A = NULL;
Also this is an example that I find confusing:
DECLARE @val CHAR(4)
SET @val = NULL
SET ANSI_NULLS ON
If @val =NULL
PRINT ‘TRUE’
ELSE
PRINT ‘FALSE’
SET ANSI_NULLS OFF
If @val =NULL
PRINT ‘TRUE’
ELSE
PRINT ‘FALSE’
The site that I found this example on is: http://www.sqlservercentral.com/articles/T-SQL/understandingthedifferencebetweenisnull/871/