1、不为空
Select * From table Where id<>''
Select * From table Where id!=''
2、为空
Select * From table Where id=''
Select * From table Where ISNULL(id)
具体情况具体分析,如果字段是char和varchar型用 id=''可以;如果是int型用 ISNULL好些
maoyizhimi 2017-04-07 10:26 原文
1、不为空
Select * From table Where id<>''
Select * From table Where id!=''
2、为空
Select * From table Where id=''
Select * From table Where ISNULL(id)
具体情况具体分析,如果字段是char和varchar型用 id=''可以;如果是int型用 ISNULL好些