zoukankan      html  css  js  c++  java
  • MySQL错误:You are using safe update mode and you tried to update a table without a WHERE that uses a K

    今日用MySQL Workbench进行数据库的管理更新时,执行一个更新的语句碰到以下错误提示:

    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 uses a KEY column To disable safe mode, toggle the option in Preferences -> SQL Editor and reconnect.

    进过一番搜索之后发现原来是MySQL Workbench的安全设置。当要执行的SQL语句是进行批量更新或者删除的时候就会提示这个错误。

    解决方法如下:

    打开Workbench的菜单[Edit]->[Preferences...]切换到[SQL Editor]页面把[Forbid UPDATE and DELETE statements without a WHERE clause (safe updates)]之前的对勾去掉点击[OK]按钮最后一步记得要重启一下Workbench,否则你仍然会得到这个错误提示。

  • 相关阅读:
    并发编程-协程
    并发编程--线程
    并发编程--进程
    并发编程--操作系统介绍
    套接字Socket
    网络基础
    异常处理
    面向对象-常用模块
    面向对象进阶(反射)
    C#项目优化
  • 原文地址:https://www.cnblogs.com/jpr-ok/p/9258207.html
Copyright © 2011-2022 走看看