摘要: select * from (select row_number() over(partition by 分组字段 order by 排序字段) as rownum -- 排序并分组, * -- 所需显示的字段from 表名) as Twhere T.rownum = 1 阅读全文
posted @ 2015-08-26 10:44 Beta3.0 阅读(652) 评论(0) 推荐(0) 编辑