码迷,mamicode.com
首页 > 其他好文 > 详细

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:33:56      阅读:167      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!