Is there any way to prevent a DELETE/UPDATE query to use the primary key greater than/less than comparison? – Mysql
In MySQL/MariaDB there's the SQL_SAFE_MDOE that prevents you to run a query without using a primary key in the where clause. But even with that flag on I could run a query such as DELETE FROM table WHERE id >…