Select IsNull(a,'')+IsNull(b,'')+IsNull(c,'') 
from table 
where a in not null or b is not null or c is not null

解决方案 »

  1.   

    Select IsNull(a,'')+IsNull(b,'')+IsNull(c,'') as abc
    from table 
    where a is not null 
    or b is not null 
    or c is not null
      

  2.   

    Select IsNull(a,'')+IsNull(b,'')+IsNull(c,'') as abc
    from table 
    where a is not null 
    or b is not null 
    or c is not null
      

  3.   

    select (isnull(a,CHAR(13))+isnull(b,CHAR(13))+isnull(c,CHAR(13))) from yourtable where a is not null or b is not null or c is not null
      

  4.   

    Select IsNull(a,'')+IsNull(b,'')+IsNull(c,'') 
    from table 
    where a in not null or b is not null or c is not null
      

  5.   

    永远记住NULL + 1 = NULL   SUM除外
      

  6.   

    你用isnull进行处理就行了.
    select isnull(a,'')+isnull(b,'')+isnull(c,'')如果abc为数字型,要用类型转换
      

  7.   

    NULL 和 其它值 运算=NULL