去重
SELECT column1, conunt(column2)
FROM your_table
GROUP BY column1
查找重复数据
SELECT column1, column2, COUNT(*) AS count
FROM your_table
GROUP BY column1, column2
HAVING COUNT(*) > 1
这些都是借助GPT完成的,不得不说,真强大,几个SQL轻松搞定,省了不少时间👍
SELECT column1, conunt(column2)
FROM your_table
GROUP BY column1
SELECT column1, column2, COUNT(*) AS count
FROM your_table
GROUP BY column1, column2
HAVING COUNT(*) > 1
这些都是借助GPT完成的,不得不说,真强大,几个SQL轻松搞定,省了不少时间👍