日期:2014-05-18 浏览次数:20428 次
select dense_rank() over(order by c ) as c ,* from #a; select rank() over (order by c) as c ,* from #a; select ntile(4) over (order by c) as c ,* from #a; select row_number () over( order by c) as c ,* from #a;