首页 > 数据库> > 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 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
标签:tried,column,safe,update,uses,MySQL,table 来源: https://www.cnblogs.com/forest-stream/p/14823503.html