mysql: Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column
mysql workbench 执行 批量update失败,报错1175
update table_name set column = xxx where id in ( select id from table_name where column1= 'xxx')
解决:先执行SET SQL_SAFE_UPDATES = 0;
再执行SQL
作者:人间春风意
扫描左侧的二维码可以赞赏

本作品采用署名-非商业性使用-禁止演绎 4.0 国际 进行许可。

浙公网安备 33010602011771号