将max() 方法和group by结合使用 select *,max(create_time) from awhere create_time<="2017-03-29 19:30:36" group by user_id