MySQL: You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column.

今天在MySQL中执行删除语句时遇到编译器显示You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column.

MySQL: You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column.

 

 参考了网上的博客,解决思路如下:

show variables like ‘sql_safe%‘;

然后显示如下:

MySQL: You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column.

 

 然后再 set sql_safe_updates=off;

即可解决。

 

参考:https://www.cnblogs.com/kaerxifa/p/11049888.html

 

MySQL: You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column.

上一篇:oracle 外部表


下一篇:老话长谈:通过windows下共享看第六代青年