使用sql查重,查询出t_table表中t_name有相同值的数据,语句如下:
SELECT * FROM t_table WHERE t_name IN (SELECT t_name FROM t_table GROUP BY t_name HAVING COUNT(t_name) > 1) ORDER BY t_name