这在 Mysql 中有效,但似乎 MariaDB 的语法不同,我试图删除前 900 个返回行(LIMIT 900)以上的任何内容:
DELETE FROM cronschedule NOT IN (SELECT * FROM cronschedule LIMIT 900);
尝试在 Maria 中执行此操作会返回以下错误:
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MariaDB server version for the right syntax to use near
'NOT IN (SELECT * FROM cronschedule LIMIT 900)' at line 1
那么我将如何在 Maria 中做到这一点?