NULL values inside NOT IN clause

在最近的一次 写sql语句的时候,遇到一个自己人为是 比较奇葩逻辑问题

 

 

  最后 在网上 搜到了一些说法,也就是在使用 sql语句的时候   not in 表达式的时候, not in( null)永远是返回空数据的

  

  附链接:

  https://stackoverflow.com/questions/129077/null-values-inside-not-in-clause

 

posted @ 2020-09-28 11:27  木子易  Views(127)  Comments(0Edit  收藏  举报