1、查询表中连续显示3次的字段、如图

常用SQL总结_字段

 

select * from logs where name in(select name from logs group by name having count(name)>3)