今天使用Mysql的update語句時,發現執行不了。
提示信息:
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 Queries and reconnect.
原因:是在safe mode下,要強制安全點,without a WHERE that uses a KEY column To disable safe mode
解決方法:
取消這個限制,執行:
SET SQL_SAFE_UPDATES=0;
即可!