摘要: SELECT * FROM ( --根据 tb表的name进行分组,根据年龄排序 SELECT * , ROW_NUMBER() OVER ( PARTITION BY name ORDER BY age DESC ) rid FROM tb ) AS t -... 阅读全文
posted @ 2019-04-01 17:16 洛晨随风 阅读(480) 评论(0) 推荐(0) 编辑