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 表名

提示出错:

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

解决方法有两个:

1. 运行SET SQL_SAFE_UPDATES=0;

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

时间: 2024-10-20 10:39:33

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

转载自: http://blog.csdn.net/amohan/article/details/9980315 快速高效用:SET SQL_SAFE_UPDATES = 0:下面的就不要看了! 今日用MySQL Workbench进行数据库的管理更新时,执行一个更新的语句碰到以下错误提示: Error Code: 1175 You are using safe update mode and you tried to update a table without a WHERE that us

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

1 错误描写叙述 19:15:34 call sp_store_insert(90) 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.0

mysql错误:Error Code: 1175. You are using safe update mode and you tried to update a table……

今天遇到一个mysql错误: 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. 网上查了一下,原来是SET SQL_SAFE_UPDATES

Error Code: 1175. You are using safe update mode and you tried to ......

MySQL提示的错误信息: 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 意思是:在安全更新模式下尝试使用未带关键字的“WHERE”语句,在Preference中切换该选项. SET SQL_SA

Error Code: 1175. You are using safe update mode and you tried to update a table

错误描述 11:14:39 delete from t_analy_yhd 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.000 se

Mysql 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

今天用mysql workbench在更新数据的时候,出现了下面错误:15:52:39    update wp_posts set post_content = replace(post_content, '/water', '')    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 disabl

Error Code: 1175. You are using safe update

在使用mysql执行update的时候,如果不是用主键当where语句,会报如下错误,使用主键用于where语句中正常. 异常内容: 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 Q

SQL更新语句,Error Code: 1175. You are using safe update(在进行视图更新的时候遇到)

转发于:http://blog.csdn.net/qq_26684469/article/details/51105188?locationNum=5&fps=1 原来的SET SQL_SAFE_UPDATES = 1; 如果条件定语从句where后面跟的不是主键,则会报上面的错,将上面的安全级别设低一点即可,如下: SET SQL_SAFE_UPDATES = 0; 再执行更新语句,如 SET SQL_SAFE_UPDATES = 0; update project.demand set ti

mysql 用非主键where语句报错Error Code: 1175.You are using safe update mode and you tried …

1)这是因为MySql运行在safe-updates模式下,该模式会导致非主键条件下无法执行update或者delete命令,执行命令SET SQL_SAFE_UPDATES = 0;修改数据库模式 执行完更新之后再将SET SQL_SAFE_UPDATES 恢复为 1; 2)或者还可以在条件后面加limit语句加以限制.