これは 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
では、マリアでこれを行うにはどうすればよいでしょうか。