mysql查找字段空、不为空的方法总结
1、不为空Select*Fromtable_name Where id<>''Select*Fromtable_name Where id!=''2、为空Select*Fromtable_name Where id=''Select*Fromtable_name WhereISNULL(id)具体情况具体分析,如果字段是char和varchar型用 id=''可以;如果是int.
·
1、不为空 Select * From table_name Where id<>'' Select * From table_name Where id!='' 2、为空 Select * From table_name Where id='' Select * From table_name Where ISNULL(id) 具体情况具体分析,如果字段是char和varchar型用 id=''可以;如果是int型用 ISNULL好些
更多推荐
已为社区贡献1条内容
所有评论(0)