删除重复的记录,并保存第一条记录或保存最后一
删除表:dgpage中Mail重复的记录并保留最后一条.
delete dgpage&n【本文由:http://www.yidunidc.com/mgzq.html复制请保留原URL】bsp;where id in ( select a.id from dgpage a, dgpage b where a.mail = b.mail and a.id > b.id )
删除表:dgpage中Mail重复的记录并保留最近一条.
delete dgpage where id in ( select a.id from dgpage a, dgpage b where a.mail = b.mail and a.id <b.id ) 【转自:韩国服务器 http://www.yidunidc.com 欢迎留下您的宝贵建议】
delete dgpage&n【本文由:http://www.yidunidc.com/mgzq.html复制请保留原URL】bsp;where id in ( select a.id from dgpage a, dgpage b where a.mail = b.mail and a.id > b.id )
删除表:dgpage中Mail重复的记录并保留最近一条.
delete dgpage where id in ( select a.id from dgpage a, dgpage b where a.mail = b.mail and a.id <b.id ) 【转自:韩国服务器 http://www.yidunidc.com 欢迎留下您的宝贵建议】