摘要: 使用postgre的窗口函数row_number, 分块后选择需要自己的行 例:获取分组中的最大数据,从table1表中获取以cloumn1字段作为分组,每组中cloum2字段最大的行数据 select * from( select * ,row_number() over (partition b 阅读全文
posted @ 2020-05-15 18:34 bl_plus_yan 阅读(4443) 评论(0) 推荐(0)