rror Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that
生活随笔
收集整理的這篇文章主要介紹了
rror Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
在mysql5中,可以設置safe mode,比如在一個更新語句中
UPDATE table_name SET bDeleted=0;
執行時會錯誤,報:
You are using safe update mode and you tried to update a table without a WHERE clause that uses a KEY column.”
? 原因是在safe mode下,要強制安全點,update只能跟where了,
要取消這個限制,可以:
? ? SET SQL_SAFE_UPDATES=0;
即可
總結
以上是生活随笔為你收集整理的rror Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: windows上安装mysql
- 下一篇: MySQLWorkbench里的稀奇事之