Is there any duplicate data in the table

Business scenario:

		 查询一张表中是重复数据;
		 或者统计有几个列是否存在重复。
select A from table group by A having count(*) > 1;

Guess you like

Origin blog.csdn.net/qq_40145879/article/details/107462378