Update query failing with error : 1175
Have a look at:
http://justalittlebrain.wordpress.com/2010/09/15/you-are-using-safe-update-mode-and-you-tried-to-update-a-table-without-a-where-that-uses-a-key-column/
If you want to update without a where key you must execute
SET SQL_SAFE_UPDATES=0;
right before your query.
Another option is to rewrite your query o include a key.
This error means you're operating in safe update mode and therefore you have two options:
- you need to provide a where clause that includes an index for the update to be successful or
- You can disable this feature by doing
SET SQL_SAFE_UPDATES = 0;
You can try on MysqlWorkbench
Go to Edit --> Preferences
Click "SQL Editor" tab and uncheck "Safe Updates" check box
Query --> Reconnect to Server (logout and then login)
I hope it is helpful for you.