错误代码:
you are using safe update mode and you tried to update a table without a where that uses a key column.
错误原因:修改或者删除sql语句执行时用非主键作为条件会被认为是“不安全”的。
解决方案:修改默认设置
执行如下代码:
set sql_safe_updates = 0;
设置安全修改为0(0为false,1为true),设置true或者false也是可以的