Mysql Update更新错误 Error Code:1175
Mysql 5.7,默认执行 update 语句时遇到错误提示:
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.
原因:
默认的安全策略,使得更新时,如果不依靠主键列进行查询时将被提示并失败。
解决方式:
SET SQL_SAFE_UPDATES = 0;
关闭掉该方式
修改如下:
SET SQL_SAFE_UPDATES = 0;
UPDATE `column` SET `column` = 新值 WHERE 非主键列条件;
SET SQL_SAFE_UPDATES = 1;
Mysql Update更新错误 Error Code:1175的更多相关文章
- MySQL Workbench update语句错误Error Code: 1175.
		rom:http://www.tuicool.com/articles/NJ3QRz MySQL update error: Error Code: 1175. You are using safe ... 
- 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
		目录 #事故现场 #解决方法 #事故现场 mysql执行update操作报错: sql如下: update psmp.Users set name='Jack' where name='Lily'; ... 
- 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.
		在修改一条数据字段时报错: Error Code: 1175. You are using safe update mode and you tried to update a table witho ... 
- mysql delete数据时报Error Code 1175
		我们在学校mysql的时候,在更新或者删除数据的时候,会遇到以下错误: Error Code: . You are using safe update mode and you tried to up ... 
- 解决Mysql Workbench的Error Code: 1175错误
		错误: Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE ... 
- mysql错误:Error Code: 1175. You are using safe update mode and you tried to update a table……
		今天遇到一个mysql错误: Error Code: . You are using safe update mode and you tried to update a table withou ... 
- MySql 执行 DELETE/UPDATE时,报 Error Code: 1175错误
		MySql 执行 DELETE FROM Table 时,报 Error Code: 1175. You are using safe update mode and you tried to upd ... 
- 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_conte ... 
- Mysql update error: Error Code: 1175. You are using safe update mode and you tried to update a table
		Mysql update error: Error Code: 1175. You are using safe update mode and you tried to update a table ... 
随机推荐
- 阿里云ECS购买优惠码
			今天收到了阿里云给我发的邮件,大意是阿里云推荐码限量开放,可享九折优惠! 于是就点击进去申请了一下 申请的优惠码是:C7IYIS有效期至2015-11-30 23:59:59 首次购买包年包月云服务器 ... 
- 面试题:J2EE中web.xml配置文件详解  背1
			一.web.xml是什么 web.xml学名叫部署描述符文件,是在Servlet规范中定义的,是Web应用的配置文件,是Web应用的基础. 二.web.xml加载流程 总的来说:ServletCont ... 
- 设计模式02: Abstract Factory 抽象工厂(创建型模式)
			Abstract Factory 抽象工厂(创建型模式) 常见的对象创建方法: //创建一个Road对象 Road road=new Road(); new的问题: -实现依赖 ... 
- Oracle的列操作(增加列,修改列,删除列),包括操作多列
			增加一列: alter table emp4 add test varchar2(10); 修改一列: alter table emp4 modify test varchar2(20); 删除一列: ... 
- HTML5 Canvas核心技术:图形、动画与游戏开发 PDF扫描版
			HTML5 Canvas核心技术:图形.动画与游戏开发 内容简介: <HTML5 Canvas核心技术:图形.动画与游戏开发>中,畅销书作家David Geary(基瑞)先生以实用的范例程 ... 
- 数据库连接工具HeidiSql介绍(支持MySQL,MariaDB,Microsoft SQL或PostgreSQL)
			前言 Navicat作为比较老牌的数据库连接工具知名度比较广,功能也比较完善,但对入门的广大初学者来讲,怎么去找安装的资源包是一大难题,虽然经过一些“渠道”能找到可以正常使用的绿色安装包,但从长期来讲 ... 
- Topshelf + Quartz2.5 创建基于windows服务
			1.创建一个定时调度Quartz类 using Quartz; using Quartz.Impl; using System; using System.Collections.Generic; u ... 
- I-team 博客全文检索 Elasticsearch 实战
			一直觉得博客缺点东西,最近还是发现了,当博客慢慢多起来的时候想要找一篇之前写的博客很是麻烦,于是作为后端开发的楼主觉得自己动手丰衣足食,也就有了这次博客全文检索功能Elasticsearch实战,这里 ... 
- 【转】C#中静态方法和非静态方法的区别
			源地址:https://www.cnblogs.com/amoshu/p/7477757.html 备注:静态方法不需要类的实例化就能调用,因为它是一直保存在内存中,不像非静态方法一样要放在实例化类时 ... 
- django 重写User表增加字段设置
			models中: from django.contrib.auth.models import AbstractUser lass User(AbstractUser): mobile = model ... 
