【发布时间】:2012-12-23 06:25:26
【问题描述】:
我正在使用 MySQL Server5.5,其中包含 MySQL Workbench 5.2 CE。我正在使用 MySQL Workbench 5.2 。我在数据库中有一个名为 user 的表。我在 MySQL Workbench 的 SQL Editor 上执行了以下命令:
UPDATE user SET email = 'abc@yahoo.com' WHERE email='ripon.wasim@yahoo.com';
但不幸的是我得到了以下错误:
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 -> Query Editor and reconnect.
怎么了?非常感谢您的帮助。
【问题讨论】:
-
user是保留字,你可能还需要用反引号括起来。 -
@a_horse_with_no_name:很好的建议,虽然我的情况没有遇到任何问题
标签: mysql sql-update mysql-workbench error-code