SQL中的行号ROW_NUMBER()

select ROW_NUMBER() over (partition by [f1] order by [f2] ),* from [t1]

posted on 2011-11-10 16:03    阅读(401)  评论(0编辑  收藏  举报