摘要: mysql: select a.* from(select t1.*,(select count(*)+1 from 表 where 分组字段=t1.分组字段 and 排序字段<t1.排序字段) as group_idfrom 表 t1) awhere a.group_id<=3 Oracle: S 阅读全文
posted @ 2018-06-13 19:11 刹那风华—— 阅读(242) 评论(0) 推荐(0) 编辑