SELECT COUNT(*) FROM h_dailyevent;
delete from h_dailyevent WHERE id not in (SELECT * from (select id from h_dailyevent group by uid,time)b);
一定要写select * ,否则不识别。好像是因为不能再同一张表内操作...
delete from h_dailyevent WHERE id not in (SELECT * from (select id from h_dailyevent group by uid,time)b);
一定要写select * ,否则不识别。好像是因为不能再同一张表内操作...