在MySQL Workbench里面使用SQL语句:

delete from 表名

提示出错:

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

这是因为设置的是safe update mode,必须跟where。

解决方法有两个:

1. 运行SET SQL_SAFE_UPDATES=0; 

2. 打开Edit->Preferences->SQL Queries,取消“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.

相关文章:

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