comparing null in SQL comparisons

前端 未结 5 538
梦谈多话
梦谈多话 2021-01-24 09:56

I am creating a front end with VB6 and my database is Sybase. Using DSN I have created some small exe\'s to populate reports in grid. It was working fine.

However if I u

5条回答
  •  我在风中等你
    2021-01-24 10:21

    General Rule: any operation involving NULL yields NULL. All comparisons involving NULL fail, regardless of whether or not the test is positive ('==') or negative ('<>'). The sole exception being explicit tests for nullity via IS [NOT] NULL or use of COALESCE()/ISNULL().

提交回复
热议问题