1.判断 null值
Select * From table Where id IS NULL; //查询id为 null值 的记录
Select * From table Where id IS NOT NULL; //查询id不为 null值 的记录
2.判断 空串
Select * From table Where id = ''; //查询id为 空串 的记录
Select * From table Where id <> '' 或 Select * From table Where id != '' //查询id不为 空串 的记录
3.判断 空串和null
Select * From table Where isnull(xsd.Order_gyDwbm,'')<>''; //查询id不为 空串 也不为 null值 的记录
Select * From table Where isnull(xsd.Order_gyDwbm,'')=''; //查询id为 空串 或 null值 的记录
理论上其他数据库也是可以这样查询的,但是没测试过