mysql查找字段空、不为空的方法总结

一、不为空 Select   *   From   table Where id<>'' Select   *   From   table Where id!='' 二、为空 Select   *   From   table Where id='' Select   *   From   table Where   ISNULL(id) 具体状况具体分析,若是字段是char和varchar型用
相关文章
相关标签/搜索