Mysql ERROR 1175 - SQL_SAFE_UPDATES
摘要
Mysql 报错 ERROR 1175, 是因为启动的时候开启了
安全更新模式
导致的
报错信息如下
1 | ERROR 1175 (HY000): You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column |
SQL_SAFE_UPDATES
这个报错是因为在更新表的时候where条件中没有到没有含有KEY的列导致的
。
另外更新的时候没有where条件
也会报类似的错误