SQL 查询字段为值不为空

 
方法一
sql="select   *   from   table   where   id<>null   "  
  or  
sql="select   *   from   table   where   len(id)>1"
方法二
"select   字段名序列   from   talbe   where   字段   is   not   null"

由于   null   不是一个值,而是一个状态  

   所以我建议不要使用算术逻辑符号     “<>”
posted @ 2014-04-04 11:19  大气中的微粒  阅读(912)  评论(0)    收藏  举报