mysql报错:Error Code: 1175. You are using safe update mode and you tried to update a table without a
mysql在update更新的时候报如下错误:> Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode, toggle the option in Preferenc
·
mysql在update更新的时候报如下错误:
> Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode, toggle the option in Preferences -> SQL Editor and reconnect. 0.000 sec
报错原因:现在是在mysql的safe-updates模式中,如果where后跟的条件不是主键,就会出现这种错误。
知道问题,解决方法就简单了,要么where后面加上主键的条件,
要么就更改模式:SET SQL_SAFE_UPDATES = 0;
建议改模式。
更多推荐
已为社区贡献1条内容
所有评论(0)