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

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;

方式二

    

原文地址:https://www.cnblogs.com/Essaycode/p/12767143.html