刪除表: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 )
刪除表: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 )