================
SELECT * FROM ( SELECT rid = ROW_NUMBER() OVER (PARTITION BY 分组 ORDER BY 排序 DESC ), * FROM 表名) AS T WHERE rid <= 10
==========
===========
select * from newtable where newtable.rid <= 5
================
SELECT * FROM ( SELECT rid = ROW_NUMBER() OVER (PARTITION BY 分组 ORDER BY 排序 DESC ), * FROM 表名) AS T WHERE rid <= 10
==========
===========
select * from newtable where newtable.rid <= 5