2022年9月26日13:41:19
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更新字段的时候,会出现如上的提示,简单来说就是当前在安全模式,一定要通过id来更新数据,也就是说,在update语句中,where后面一定要指明id,不然就不给修改。
当然一种解决方案就是关掉安全模式,这个方法有很多。
还有一种可能就是使用了workbench,换成其他的客户端软件就可能可以执行了,比如Navicat,这个就可以直接更新字段。
(难道就只有官方的工具才会遵守规矩?)