您的位置:首页 > Web前端

处理MySQL更新表时Error Code: 1175. You are using safe update mode and you tried to update a table……

2013-08-05 21:31 465 查看
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;

update T set col = 'xxx' where condition ……;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐