mysql查找字段空、不爲空的方法總結

一、不爲空 Select   *   From   table Where id<>'' Select   *   From   table Where id!='' 二、爲空 Select   *   From   table Where id='' Select   *   From   table Where   ISNULL(id) 具體狀況具體分析,若是字段是char和varchar型用 id=''能夠;若是是int型用 ISNULL好些