当前位置:Gxlcms > 数据库问题 > Mysql-解除安全模式批量更新

Mysql-解除安全模式批量更新

时间:2021-07-01 10:21:17 帮助过:4人阅读

update email_content  set Content = replace(Content ,‘001.11‘,‘002.22‘)	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 and reconnect. 0.031 secfan‘s  

方式一

  1、show variables like ‘SQL_SAFE_UPDATES’;查看开关状态。

  2 、SET SQL_SAFE_UPDATES = OFF;

  3、update email_content set Content = replace(Content ,‘001.11‘,‘002.22‘); //批量更新email_content的Content字段内容中001.11为002.22

  4、记得更新后:SET SQL_SAFE_UPDATES = ON;

 

方式二

  技术图片  技术图片

 

Mysql-解除安全模式批量更新

标签:enc   img   error   edit   tab   without   ror   ble   highlight   

人气教程排行