1 select distinct s.id 2 from S s 3 join T t on s.id=t.it 4 where t.name = "ranmou" 5 group by t.mobile 6 having count(*)>2 7 order by s.create_time 8 limit 5
执行顺序为: