举个栗子: 已知下表中有三条数据,
其中一条name = null,我们用惯用的 字段 = 条件 查询手法查询这条数据
select * from testuser where username = null 得到一下结果
这结果一看肯定不对鸭,我们换一个写法
select * from testuser where username is null
这才查出来我们想要的结果,所以说,当查询条件为null值的时候,把等号
换成 is null关键字,来查询数据,会把满足条件的结果展示出来。