delete from table where id >=4 就可以了,
如果你确定要用你的方式写的话
DELETE FROM table1 WHERE Id BETWEEN 4 AND (SELECT max(Id) FROM table1)
你的聚合函数用错了 改成max
id不一定是连续的,count统计的是行数
delete from table where id >=4 就可以了,
如果你确定要用你的方式写的话
DELETE FROM table1 WHERE Id BETWEEN 4 AND (SELECT max(Id) FROM table1)
你的聚合函数用错了 改成max
id不一定是连续的,count统计的是行数