表  t_user_info

id  groupid  content  lasttime

select  *  from t_user_info t where not exists

(select * from t_user_info where groupid= t.groupid and t.lasttime<lasttime)

 

相关文章: