select accountid,count(*) as count from vtiger_assetaccount  group by accountid having count>1;

 更新

如果要找出是哪些记录重复

SELECT
	result.accountid
FROM
	(
		SELECT
			accountid,
			count(*) AS count
		FROM
			vtiger_assetaccount
		GROUP BY
			accountid
		HAVING
			count > 1
	) AS result
LEFT JOIN vtiger_assetaccount ON vtiger_assetaccount.accountid = result.accountid

 

相关文章:

  • 2021-12-11
  • 2022-12-23
  • 2022-12-23
  • 2021-09-10
  • 2021-06-18
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-13
  • 2022-12-23
  • 2021-06-19
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案