首页 > 代码库 > Error Code: 1175.You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column.
Error Code: 1175.You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column.
在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.
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。