2021-04-23
阅读量:
667
mysql报错 Error Code: 1175. You are using safe update mode
问:
mysql报错 Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column.
答:
这是因为mysql在安全模式中,在非主键条件下无法对数据进行更新,可以通过执行语句:SET SQL_SAFE_UPDATES = 0;
取消安全模式,再执行之前的更新语句。
92.3077
1
0
关注作者
收藏
评论(0)
发表评论
暂无数据
推荐帖子
0条评论
0条评论
0条评论

