I have a MySql query, which is given below:
UPDATE signup SET lastname='Lastname', password='123'
WHERE firstname='Firstname';
I am using MySql Workbench to execute the query.
But it's not updating the row and shows this 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 in Preferences -> SQL Editor and reconnect.
In mysql workbench the safe mode is enabled by default, so if your WHERE
clause doesn't have a key it will prevent running the query. Try disabling that using these steps -
Edit
> Preferences
> Sql Editor
> uncheck the "Safe Updates"
Note - try reconnecting the server (Query
> Reconnect to Server
) and than run your query again.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments