Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/65.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在MySQL中运行更新查询时,如何清除错误?_Mysql_Sql - Fatal编程技术网

在MySQL中运行更新查询时,如何清除错误?

在MySQL中运行更新查询时,如何清除错误?,mysql,sql,Mysql,Sql,我正在使用MySQL WORKBENCH 6.1.6。我需要更新我的数据库表。我尝试了以下编码: UPDATE `test`.`festexplorer_users` SET User_preference = 'All_Over_India' WHERE User_year_of_passing=2015; 这里,test是我的数据库名,festexplorer\u users是我的表名,我需要更新列User\u首选项。我有以下错误 Error Code: 1175. You are us

我正在使用MySQL WORKBENCH 6.1.6。我需要更新我的数据库表。我尝试了以下编码:

UPDATE `test`.`festexplorer_users`
SET
User_preference = 'All_Over_India' 
WHERE User_year_of_passing=2015;
这里,test是我的数据库名,festexplorer\u users是我的表名,我需要更新列User\u首选项。我有以下错误

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工作台中,转到

编辑->首选项->SQL查询

取消选中“禁止更新和删除” 没有WHERE子句的语句安全更新

然后

查询->重新连接到服务器
看看这个:哦。。。我得到了它。。。谢谢你的回复你需要检查这个@MukulBhardwaj我已经澄清了关于这个错误的所有疑问。。。。谢谢你的回复