1.关于sql中!=NULL和is not null

  今天在写一个简单的sql的时候,用到了!=null,结果返回空集合。后来被同是提醒需要使用 is not null。后来在网上参考这篇文章https://www.cnblogs.com/studynode/p/10068384.html,算理解了两种用法之间的区别。、

      总之记住一句话,有关null的判断就是 is null 和 is not null两种。

     

 

posted @ 2022-04-11 15:13  ForMei  阅读(556)  评论(0)    收藏  举报