- 报错提示: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.
- 解释:错误代码:1175。您正在使用安全更新模式,并且尝试更新一个没有使用KEY列的WHERE的表。要禁用安全模式,请切换“首选项”->“SQL编辑器”中的选项,然后重新连接。
- 原因:因为版本较新的MySQL workbemch是在safe-updates模式下进行sql操作的,这个模式无法执行update。
- 解决办法:set sql_safe_updates=0;输入这句之后这个safe-update模式就关闭了,此后再输入更新语句就没问题了;set sql_safe_updates=1;输入这个重新进入safe-update模式。
- 至于这个sefa-update模式——遇到在说