Error Code: 1175.You are using safe update mode

今天使用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;
即可!

发布了121 篇原创文章 · 获赞 30 · 访问量 11万+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章