日期:2014-05-16 浏览次数:20668 次
delete from sns_hits where id not in (1,2,3)是没有问题的
delete from sns_hits where id not in (select id from another_table)也是麽有问题的
delete from sns_hits where id not in (select id from sns_hits)就TMD有问题了
CREATE TEMPORARY TABLE tmp_sns_hits ( `id` BIGINT(20) )
delete from sns_hits where id not in (select id from sns_hits)
delete from sns_hits where id not in (select id from sns_hits)
delete from sns_hits where id not in (select id from sns_hits)