delete from dwd_solar_fact_metrics_inverter_5m_test a where a.ctid =
any(array (select t.ctid from
(select row_number() over (partition by data_time,inverter_id),ctid from dwd_solar_fact_metrics_inverter_5m_test ) t where t.row_number>1));
表中有重复数据,主键冲突,删除多余的数据保留一条
最新推荐文章于 2023-01-08 00:06:19 发布