欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

删除重复数据

程序员文章站 2022-05-26 16:04:57
...

delete from cbe_subscriber a where rowid !=(select max(rowid) from cbe_subscriber b where a.SUBSCRIBERKEY=b.SUBSCRIBERKEY and a.APPLYTIME=b.APPLYTIME);

delete from cbe_subscriber a
where rowid !=(select max(rowid)
from cbe_subscriber b
where a.SUBSCRIBERKEY=b.SUBSCRIBERKEY
and a.APPLYTIME=b.APPLYTIME);