MySQL查询条件不等于过滤了NULL

MySQL中使用了<> 进行条件过滤,结果字段中有NULL 的值也被过滤了

and type<>18

解决办法:

and (type<>18  or type is null)

原文地址:https://www.cnblogs.com/Payne-SeediqBale/p/14368009.html