1、删除数据表某一列重复行
delete from events_copy1 where id in(
select id FROM (
SELECT *, ROW_NUMBER() OVER (PARTITION BY srcIndex ORDER BY srcIndex) AS rn
FROM `events_copy1` where `happenTime` >= '2024-05-11 00:00:00' AND `happenTime` <= '2024-05-11 23:59:59'
) t1 WHERE t1.rn > 1);
select count(distinct srcIndex) from events where `happenTime` >= '2024-05-11 00:00:00' AND `happenTime` <= '2024-05-11 23:59:59';