Closed yihaimen closed 7 years ago
我理解的是前者会判断主键是否存在,若存在进行数据更新,不存在则进行数据插入;后者判断主键存在,则不作处理,返回错误。
insert是插入。save是有则更新,无则插入
我理解的是前者会判断主键是否存在,若存在进行数据更新,不存在则进行数据插入;后者判断主键存在,则不作处理,返回错误。