--查询的时候判断
isnull(字段,'')

解决方案 »

  1.   

    楼上的能否写清楚啊?
    是否能用直接的like 直接查到?
      

  2.   

    .......where 字段 is null或者
    where isnull(字段,'')=''
      

  3.   

    查询的时候。
    where isnull(字段,'')<>'' and 字段 like '%搜索字符%' --空或者空字符串不能在查询中查出。
    where isnull(字段,'') like '%搜索字符%' ----空或者空字符串可以在查询中查出。
    以上所说的区别是在搜索字符为空字符串时。
      

  4.   

    (column like '%%' or column is null)
      

  5.   

    where isnull(字段,'')<>'' and 字段 like '%搜索字符%' --空或者空字符串不能在查询中查出。where isnull(字段,'') like '%搜索字符%' ----空或者空字符串可以在查询中查出。where (字段 like '%搜索字符%' or 字段 is null)
      

  6.   

    where 字段 is not null and 字段 like '%搜索字符%'