行业动态
SQL查询非空记录、SQL查询值为空的记录
发布日期:2009-09-18 阅读次数:6168 字体大小:

查询非空记录
方法一、sql="select   *   from   table   where   id<>null   "   
方法二、sql="select   *   from   table   where   len(id)>1"
方法二、select * from News where Newstype = "指定值" and newspic is not Null order by NewsID desc

查询值为空的记录 select * from News where Newstype = "指定值" and newspic is  Null order by NewsID desc
其它的反之