日期:2014-05-17 浏览次数:20501 次
--加行号 select a.*,b.* from (select *,rn=ROW_NUMBER() over(order by getdate()) from ta)a left join (select *,rn=ROW_NUMBER() over(order by getdate()) from tb)b on a.rn=b.rn