comparing null in SQL comparisons

前端 未结 5 540
梦谈多话
梦谈多话 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 09:59

    You cannot use when user_id <> Null. You must use user_id Is Null or user_id Is Not Null. Anything = or <> to Null results in Unknown which is treated as false for the Case expression.

提交回复
热议问题