问题:
I'm trying to update the column visited
to give it the value 1. I use MySQL workbench, and I'm writing the statement in the SQL editor from inside the workbench. 我正在尝试更新visited
的列以赋予它值1.我使用MySQL工作台,并且我在工作台内部在SQL编辑器中编写语句。 I'm writing the following command: 我正在编写以下命令:
UPDATE tablename SET columnname=1;
It gives me the following error: 它给了我以下错误:
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 .... 您正在使用安全更新模式,并且您尝试更新没有使用KEY列的WHERE的表要禁用安全模式,请切换选项....
I followed the instructions, and I unchecked the safe update
option from the Edit
menu then Preferences
then SQL Editor
. 我按照说明操作,然后从Edit
菜单中取消选中safe update
选项,然后取消选择Preferences
然后选择SQL Editor
。 The same error still appear & I'm not able to update this value. 仍然出现相同的错误,我无法更新此值。 Please, tell me what is wrong? 拜托,告诉我有什么问题?
解决方案:
参考一: https://stackoom.com/question/m2AG/MySQL错误代码-MySQL-Workbench中UPDATE期间的-错误代码参考二: https://oldbug.net/q/m2AG/MySQL-error-code-1175-during-UPDATE-in-MySQL-Workbench
来源:oschina
链接:https://my.oschina.net/u/4438370/blog/4335622