600字范文,内容丰富有趣,生活中的好帮手!
600字范文 > mysql报错:Error Code: 1175. You are using safe update mode and you tried to update a table without a

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

时间:2018-07-02 08:56:34

相关推荐

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 Preferences -> SQL Editor and reconnect. 0.000 sec

报错原因:现在是在mysql的safe-updates模式中,如果where后跟的条件不是主键,就会出现这种错误。

知道问题,解决方法就简单了,要么where后面加上主键的条件,

要么就更改模式:SET SQL_SAFE_UPDATES = 0;

建议改模式。

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。