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.

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

 

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

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 KE

 

 然后再 set sql_safe_updates=off;

即可解决。

 

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

 

上一篇:【学习随记】论文翻译:A Comprehensive Survey on Safe Reinforcement Learning


下一篇:30. Django 2.1.7 模板 - HTML转义