1175. You are using safe update mode

来源:互联网 发布:淘宝店想改店铺名 编辑:程序博客网 时间:2024/04/30 17:26

update A,B set A.popularize=1 where A.brand_id=2 and B.app_id=A.app_id;

执行了上面的语句总是报如下错误,还以为是写错了,

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; 
即可

0 0