2021-04-23
阅读量:
581
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;
取消安全模式,再执行之前的更新语句。






评论(0)


暂无数据
推荐帖子
0条评论
0条评论
0条评论