首页 > 其他 > 详细

Error Code: 1175.You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column.

时间:2015-01-28 14:31:13      阅读:376      评论:0      收藏:0      [点我收藏+]

在MySQL Workbench里面使用SQL语句:

delete from 表名

提示出错:

Error Code: 1175.You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column.

这是因为设置的是safe update mode,必须跟where。

解决方法有两个:

1. 运行SET SQL_SAFE_UPDATES=0; 

2. 打开Edit->Preferences->SQL Queries,取消“Safe Updates”前面的勾。

技术分享

Error Code: 1175.You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column.

原文:http://www.cnblogs.com/mstk/p/4255653.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!