set @num := 0, @type := '';
select type, variety, price,
@num := if(@type = type, @num + 1, 1) as row_number, @type := type as dummy
from fruitsgroup by type, price, varietyhaving row_number <= 2;
走同样的路,发现不同的人生
走同样的路,发现不同的人生