you tried to update a table without a WHERE that uses a KEY column
you tried to update a table without a WHERE that uses a KEY column
一个简单的update死活执行不了
17:04:36 update brick.pay_info set need_pay =debt +pay_now 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 sec
原来是因为mysql有个安全模式,安全模式下必须要通过主键才能update操作
接触安全模式后即可执行:SET SQL_SAFE_UPDATES = 0;
恢复安全模式:SET SQL_SAFE_UPDATES = 1;
you tried to update a table without a WHERE that uses a KEY column相关推荐
- Mysql -update - Error Code: 1175. You are using safe update mode and you tried to update a table wit
使用MySQL执行update的时候报错:Error Code: 1175. You are using safe update mode and you tried to update a tabl ...
- Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE tha
[MySQL笔记]解除输入的安全模式,Error Code: 1175. You are using safe update mode and you tried to update a table ...
- rror Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that
在mysql5中,可以设置safe mode,比如在一个更新语句中 UPDATE table_name SET bDeleted=0; 执行时会错误,报: You are using safe upd ...
- MySQL建表时Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP
问题描述:在利用MySQL语句建立表结构时出现了Error Code : 1293 Incorrect table definition; there can be only one TIMESTAM ...
- [Err] [Dtf] 1293 - Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_T
将远端数据库的数据传输到本地时候出现了这样的错误 [Err] [Dtf] 1293 - Incorrect table definition; there can be only one TIMEST ...
- Incorrect table definition; there can be only one auto column and it must be defined as a key
今天在复习mysql的基本语句时,创建一个表,原来建表语句如下: CREATE TABLE test4 ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, NAME ...
- Table options do not contain an option key ‘connector‘ for discovering a connector.
例如我们想和kafka连接时WITH需要添加 'connector'这项,如果是连接hive的除了需要添加该项之外还需要添加连接hiv所需的JDBC的依赖. 当缺少这两项时可能会报这种错误. Stri ...
- Clickhouse彻底删除表, drop表后重新创建报错,Code: 342, Existing table metadata in ZooKeeper differs in primary key
Clickhouse彻底删除表, drop表后重新创建报错,Code: 342, Existing table metadata in ZooKeeper differs in primary key ...
- Java SQLSyntaxErrorException: Key column ‘xxx‘ doesn‘t exist in table问题解决
问题描述: Cause: java.sql.SQLSyntaxErrorException: Key column 'user_name' doesn't exist in table 问题分析: 1 ...
最新文章
- pandas数据索引之loc、iloc、ix详解及实例
- php调用系统浏览器代码,php判断操作系统或浏览器实现代码
- shell里面的参数
- 20155222 2016-2017-2 《Java程序设计》第10周学习总结
- AndroidStudio SSL peer shut down incorrectly
- pythonsuper用法_python super函数使用方法详解
- mac java sh_怎么在Mac上下载java?
- 【Go API 开发实战 2】RESTful API 介绍
- adadelta算法_对C++用户比较友好的机器学习算法库
- Ubuntu 软件源sources.list
- 白领最低生存技能手册
- 8种常被忽视的SQL错误用法
- caffe 使用自带的_net.py绘制网络图问题
- 【跃迁之路】【586天】程序员高效学习方法论探索系列(实验阶段343-2018.09.14)...
- 读书|《赤裸裸的统计学》:统计数字很容易说谎
- 拼多多“出海”的三个考验?
- 木头打大孔的新方法-燃烧法
- 实验七 12 小数化分数
- 总结关于thinkphp中where查询条件的设置
- 给未来的你---李开复
热门文章
- VUE项目后台管理系统(四)左边菜单动态展示,不仅可以折叠,而且点击不同的菜单,右边展示不同的页面
- 安卓帧率FPS计算原理
- Python爬虫入门【4】:美空网未登录图片爬取
- 转:区块链的这些事儿:十大法则、社会角色、社群运营
- android res文件夹的意思
- 地铁闸门会夹伤人吗_地铁闸机翻脸不认人?掌握正确的过闸姿势很重要
- 告别ASP(主动串行编程)下载模式
- 剑指offer----C语言版----第一天
- 无线网络怎么连接绝地球生服务器,手机无线网络连接方法 手机Wifi无线网络设置的操作步骤组图...
- Vue 简单集成环信SDK