当要执行的SQL语句是进行批量更新或者删除的时候就会提示这个错误。 错误信息:You are using safe update mode and you tried to update a table without a WHERE that .......... 解决方法: SET SQL_SAFE_UPDATES = 0;