📜  como verificar registros duplicados no sql postgresql 代码示例

📅  最后修改于: 2022-03-11 15:05:25.891000             🧑  作者: Mango

代码示例1
SELECT year, COUNT(id)
FROM YOUR_TABLE
GROUP BY year
HAVING COUNT(id) > 1
ORDER BY COUNT(id);