workbench中safe update

1、在workbench中表格显示为readonly ,更新时提示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.

这是由于MySQL Workbench打开了安全更新模式

 

解决方法:
SET SQL_SAFE_UPDATES = 0;
要执行的sql语句 SET SQL_SAFE_UPDATES = 1;

 

posted @ 2016-03-16 17:29  麦穗丢丢  阅读(394)  评论(0)    收藏  举报