create table gftmp_duoyu SELECT t1.* FROM dev_user as t1,dev_user as t2 where t1.devid=t2.devid and t1.useridgf<>t2.useridgf and t1.gftime <= t2.gftime;
useridgf 加index
DELETE dev_user,gftmp_duoyu FROM dev_user,gftmp_duoyu where dev_user.useridgf = gftmp_duoyu.useridgf
分类:电脑技术
标签:
评论已关闭!