挑选出number最大的select * from biao b where not exists(select * from biao where b.name=name and b.number<number) order by id desc挑选出时间最近的select * from biao b where not exists(select * from biao where b.name=name and b.eventtime<eventtime ) order by id desc