You are using safe update mode and you tried to update a table without a WHERE that uses a KEY colum
2013-03-26 08:45
537 查看
Error: 1175 SQLSTATE: HY000 (ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE)
Message: You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column.
Solution:
SET SQL_SAFE_UPDATES =
0;
在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;
即可
Message: You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column.
Solution:
SET SQL_SAFE_UPDATES =
0;
在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;
即可
相关文章推荐
- You are using safe update mode and you tried to update a table without a WHERE that uses a KEY colum
- You are using safe update mode and you tried to update a table without a WHERE that uses a KEY colum
- You are using safe update mode and you tried to update a table without a WHERE that uses a KEY colum
- You are using safe update mode and you tried to update a table without a WHERE that uses a KEY colum
- rror 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 Editor and reconnec
- Mysql Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column
- mysql update 报 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
- Error Code: 1175.You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column.
- MySQL错误: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 easonjim
- 处理MySQL更新表时ErrorCode:1175.You are using safe update mode and you tried to update a table without a WHERE that uses a KEY
- 【MySQL笔记】解除输入的安全模式,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.
- MySQL错误:You are using safe update mode and you tried to update a table without a WHERE that uses a K
- MySQL错误:You are using safe update mode and you tried to update a table without a WHERE that uses a K
- MySQL错误:You are using safe update mode and you tried to update a table without a WHERE that uses a K
- You are using safe update mode and you tried to update a table without a WHERE that uses a K
- MySQL错误:You are using safe update mode and you tried to update a table without a WHERE that uses a K
- You are using safe update mode and you tried to update a table without a WHERE that uses a K
- MySQL错误:You are using safe update mode and you tried to update a table without a WHERE that uses a K
- MySQL错误:You are using safe update mode and you tried to update a table without a WHERE that uses a K