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相关推荐

  1. 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 ...

  2. 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 ...

  3. 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 ...

  4. 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 ...

  5. [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 ...

  6. 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 ...

  7. Table options do not contain an option key ‘connector‘ for discovering a connector.

    例如我们想和kafka连接时WITH需要添加 'connector'这项,如果是连接hive的除了需要添加该项之外还需要添加连接hiv所需的JDBC的依赖. 当缺少这两项时可能会报这种错误. Stri ...

  8. 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 ...

  9. Java SQLSyntaxErrorException: Key column ‘xxx‘ doesn‘t exist in table问题解决

    问题描述: Cause: java.sql.SQLSyntaxErrorException: Key column 'user_name' doesn't exist in table 问题分析: 1 ...

最新文章

  1. pandas数据索引之loc、iloc、ix详解及实例
  2. php调用系统浏览器代码,php判断操作系统或浏览器实现代码
  3. shell里面的参数
  4. 20155222 2016-2017-2 《Java程序设计》第10周学习总结
  5. AndroidStudio SSL peer shut down incorrectly
  6. pythonsuper用法_python super函数使用方法详解
  7. mac java sh_怎么在Mac上下载java?
  8. 【Go API 开发实战 2】RESTful API 介绍
  9. adadelta算法_对C++用户比较友好的机器学习算法库
  10. Ubuntu 软件源sources.list
  11. 白领最低生存技能手册
  12. 8种常被忽视的SQL错误用法
  13. caffe 使用自带的_net.py绘制网络图问题
  14. 【跃迁之路】【586天】程序员高效学习方法论探索系列(实验阶段343-2018.09.14)...
  15. 读书|《赤裸裸的统计学》:统计数字很容易说谎
  16. 拼多多“出海”的三个考验?
  17. 木头打大孔的新方法-燃烧法
  18. 实验七 12 小数化分数
  19. 总结关于thinkphp中where查询条件的设置
  20. 给未来的你---李开复

热门文章

  1. VUE项目后台管理系统(四)左边菜单动态展示,不仅可以折叠,而且点击不同的菜单,右边展示不同的页面
  2. 安卓帧率FPS计算原理
  3. Python爬虫入门【4】:美空网未登录图片爬取
  4. 转:区块链的这些事儿:十大法则、社会角色、社群运营
  5. android res文件夹的意思
  6. 地铁闸门会夹伤人吗_地铁闸机翻脸不认人?掌握正确的过闸姿势很重要
  7. 告别ASP(主动串行编程)下载模式
  8. 剑指offer----C语言版----第一天
  9. 无线网络怎么连接绝地球生服务器,手机无线网络连接方法 手机Wifi无线网络设置的操作步骤组图...
  10. Vue 简单集成环信SDK