时间:2021-07-01 10:21:17 帮助过:34人阅读
delete from visitrecord where id in (select top 100 from visitrecord order by id asc)
delete from visitrecord where id in (select id from visitrecord order by id asc limit 100)
delete from visitrecord limit 100
delete from visitrecord where id in (select id from visitrecord order by id asc limit 100)
This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery
delete from visitrecord where id in (select top 100 from visitrecord order by id asc)
你的这个写法是sqlserver的
mysq写法如下
delete from visitrecord where id in (select id from visitrecord order by id asc limit 100);
都是大神啊,我轻飘飘的路过~~~