摘要: 转自:http://www.cnblogs.com/icebutterfly/archive/2009/08/05/1539657.html语法:ROW_NUMBER() OVER(PARTITION BY COLUMN ORDER BY COLUMN)简单的说row_number()从1开始,为每一条分组记录返回一个数字,这里的ROW_NUMBER() OVER (ORDER BY xlh DESC) 是先把xlh列降序,再为降序以后的没条xlh记录返回一个序号。示例:xlh row_num1700 11500 21085 3710 4row_number() OVER (PARTITION 阅读全文
posted @ 2012-10-23 00:29 是时候 阅读(162) 评论(0) 推荐(0) 编辑