Error Code: 1175. You are using safe update mode and you tried to update

1、在安全模式下,只能根据主键来做修改,所以使用非主键修改,那么将要解除安全模式,然后再执行操作。

  1)解除安全模式:

  SET SQL_SAFE_UPDATES = 0;
  DELETE FROM secondary.basicattributes where basAgeArchitecture = "未知";

  2)恢复安全模式

  SET SQL_SAFE_UPDATES = 1;

posted @ 2021-04-07 17:38  天宇爱水  阅读(180)  评论(0编辑  收藏  举报