postgresql 删除重复数据

 

delete fromwhere ctid not in (select min(ctid) from 表 group by 重复字段);

 

posted @ 2019-09-03 20:42  紫晶城  阅读(715)  评论(0编辑  收藏  举报