日期:2014-05-18 浏览次数:20534 次
SELECT RN=ROW_NUMBER() OVER (ORDER BY GETDATE()),a,b FROM A ------解决方案--------------------
select row_number() over(order by getdate())id,a,b from A