错误叙述
在使用MySQL Workbench执行update语句或者delete语句时会出现异常信息
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.
出现错误的原因
在使用MySQL Workbench时会默认勾选Safe Updates选项.
解决方法
在MySQL Workbench设置里取消该勾选即可.
步骤如下:
1.点击编辑(edit)
2.点击偏好(Preferences)
3.SQL Editor下面有个Safe Updates选线,取消勾选,然后重启Workbench就行