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

Posted 木析

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MySQL: You are using safe update mode and you tried to update a table without a WHERE that uses a KE相关的知识,希望对你有一定的参考价值。

今天在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%\';

然后显示如下:

 

 然后再 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 KE的主要内容,如果未能解决你的问题,请参考以下文章