我正在尝试使用以下查询运行更新查询,其中实际 id 看起来像 1273106/2,但遇到以下错误,任何人都可以帮助解决它吗?

UPDATE ids.id_submit_table SET picked_bit='1'
        WHERE (id like '1273106')

行如下所示
126 1273106/2   AL.BH.1.1.1 SU_CNSS_BT_FM_AL.BH.1.1.1 username  0   0

错误:-
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 Queries and reconnect.   0.000 sec

最佳答案

这是 MySQL Workbench 问题,而不是 MySQL 本身。您可以通过任何其他 MySQL 客户端尝试,也可以在 Workbench Preferences 中关闭安全查询。

关于mysql - 错误代码 : 1175. 您正在使用安全更新模式,并且您尝试更新没有使用 KEY 列的 WHERE 的表,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/30878073/

10-12 12:28
查看更多