select * from (

select * from table_name order by create_time desc limit 100000

) as t
group by t.id;

 

limit 后的数值得对应调整

相关文章: