数据库 safe You are using safe update mode and you tried to update a table without a WHERE

来源:互联网 发布:淘宝客户关系管理软件 编辑:程序博客网 时间:2024/05/17 02:36

ou 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.

数据库safe保护,原来是msql workbench的安全设置。当进行批量删除或者更新的时候会发生

快速解决办法  执行 SET SQL_SAFE_UPDATES =0;

普通方法

1.打开workbench菜单(Edit)>[perferences]
2.切换到[sql editor]界面
3.把[forbid uppdate and delete statement without clause (safe updates)]之前的勾去掉(有的是safe update and ****反正这个勾去掉)
  点击OK按钮
4.最后一部记得重启workbench,否则还是会报错。

1 0
原创粉丝点击