//查询名称相同的
SELECT `id`,`name` FROM `t_employee` WHERE `name` in (
SELECT `name`
FROM `t_employee`
GROUP BY `name` HAVING count(`name`) >1);
//查询名称相同的
SELECT `id`,`name` FROM `t_employee` WHERE `name` in (
SELECT `name`
FROM `t_employee`
GROUP BY `name` HAVING count(`name`) >1);