问题描述:在mysql workbench中对一张包含主键的表进行删除,但是报错,进行测试在命令行和navicat中执行都没有问题,后来发现是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.

 

 

1. mysql workbench "Edit"-->"Preferences"

Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column.

 

 

2."SQL Editor"-->"Safe Updates" 

Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column.

 

 

3.取消勾选

Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column.

 

 

4.重新删除执行成功,重开窗口

Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column.

 

相关文章:

  • 2022-02-15
  • 2022-12-23
  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
  • 2021-08-29
  • 2022-12-23
  • 2021-09-30
猜你喜欢
  • 2021-10-18
  • 2022-03-01
  • 2022-01-20
  • 2021-06-10
  • 2021-10-21
  • 2021-03-31
相关资源
相似解决方案