Thursday, January 28, 2016

not null vs != OR <>

NULL Cannot be compared to any value using the comparison operators. NULL = NULL is false. Null is not a value. The IS operator is specially designed to handle NULL comparisons.



<> is Standard SQL-92; != is its equivalent: Both evaluate for values,
WHERE NULL CANNOT


No comments:

Post a Comment

https://blog.sqlauthority.com/2009/06/27/sql-server-fix-error-17892-logon-failed-for-login-due-to-trigger-execution-changed-database-context...