select * from table200702 where date>'20070228'
union
select * from table200703 where date<'20070302'

解决方案 »

  1.   

    石头兄,您的方法好像有点问题: 不能以 DISTINCT 方式选择 text、ntext 或 image 数据类型。
      

  2.   

    select * from table200702 where date>'20070228'
    union all
    select * from table200703 where date<'20070302'
      

  3.   

    haww1218() ( ) 信誉:100    Blog  2007-3-12 17:31:55  得分: 0  
     
     
       
    石头兄,您的方法好像有点问题: 不能以 DISTINCT 方式选择 text、ntext 或 image 数据类型。  
     
    ----------可以這樣select * from table200702 where date>'20070228'
    union all
    select * from table200703 where date<'20070302'用union all就不會報錯