select Brand,OutDecorate from CarInfo where ID = '85' 
union 
select Brand,OutDecorate from CarInfo where ID = '87'OutDecorate是一个NTEXT的类型提示“不能以 DISTINCT 方式选择 text、ntext 或 image 数据类型”
怎么解决这个问题?谢谢

解决方案 »

  1.   

    select Brand,OutDecorate from CarInfo where ID = '85' 
    union all
    select Brand,OutDecorate from CarInfo where ID = '87'或者select Brand,OutDecorate from CarInfo where ID in ('85','87')
      

  2.   

    select Brand,OutDecorate from CarInfo where ID = '85' 
    union all
    select Brand,OutDecorate from CarInfo where ID = '87'如一楼。还好是单一ID。要是不确定条件会有重复
      

  3.   

    select Brand,OutDecorate from CarInfo where ID = '85' 
    union all
    select Brand,OutDecorate from CarInfo where ID = '87'
    正解呀