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

Error Code: 1175. You are using safe update

mysql 报错:Error Code: 1175. You are using safe update mode and you tried to update a table without a

SQL更新语句,Error Code: 1175. You are using safe update(在进行视图更新的时候遇到)

mysqlworkbench 执行update语句报错:You are using safe update mode and you tried to update a table without a

Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE(示例代

You can add an index on a column that can have NULL values if you are using the MyISAM, InnoDB, or M