查询重复数据 方式1,使用group + having select word, count(id) as c from test_words group by word having c > 1 方式2,使用in+子查询 select * from test_words