先建表 CREATE TABLE [dbo].[orderdt_jimmy]( ,) NOT NULL, [order_nid] [int] NOT NULL, ) NOT NULL, [qty] [int] NOT NULL, , ) NULL, , ) NULL ); GO 怎么查询每一组的前几个? select t1.rn,t1.order_nid,t1.sku,t1.qty,t1.price,t1.amount from( select *,ROW_NUMBER() over(parti…