SQL 不等于查询

字段为空:使用 is null

字段不为空:使用 is not null 

!= '1' :不会取空值

<> '1' :不会取空值

要是 不等于1 又查询空值的时候 需要or :where IsMana is null or IsMana != '1'

原文地址:https://www.cnblogs.com/lengv10/p/3698734.html