问题描述:
在使用update语句修改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 Editor -> Query Editor and reconnect.
原因分析:
这个是因为你的表没有建立key,同时在update时where子句中也要用到key。所以会出现上述错误。
解决办法:
在执行update语句前加下面一句话即可解决此问题:
SET SQL_SAFE_UPDATES = 0;
Mysql数据库修改表数据时报【Error Code: 1175】的解决办法
猜你喜欢
转载自mryangjw.iteye.com/blog/1772770
今日推荐
周排行