两个值有一个值为空 就为空
该下:
case when 备注1='' then 备注2 + N';'+备注1 else 备注2 end as 备注 
试下

解决方案 »

  1.   

    isnull()函數case when 备注1  is not null  then isnull(备注2,'') + N';'+备注1 else isnull(备注2,'') end as 备注 
      

  2.   

    case when 备注1  is not null  then isnull(备注2,'') + N';'+备注1 else 备注2 end as 备注 
      

  3.   

    不是想达到两个值有一个为空就为空
    我试了楼上的,还是null