2018-10-17
阅读量:
1695
在Workbench中update更新数据库1175错误
在执行更新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 Workbench的安全设置。当要执行的SQL语句是进行批量更新或者删除的时候就会提示这个错误。
解决办法是:
- 打开Workbench的菜单[Edit]->[Preferences...]切换到[SQL Editor]页面

2.把[Forbid UPDATE and DELETE statements without a WHERE clause (safe updates)]之前的对勾去掉点击[OK]按钮

3.最后一步记得要重启一下Workbench,否则你仍然会得到这个错误提示。






评论(0)


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