日期:2014-05-16 浏览次数:20796 次
SELECT id,nfare,fromcode,arriveCode FROM ( SELECT *,ROW_NUMBER()OVER(PARTITION BY arriveCode ORDER BY GETDATE())oid FROM TB )a WHERE oid=2