摘要: 我们操作数据库的时候,有时候会遇到insertOrUpdate这种需求。 如果数据库中存在数据就update,如果不存在就insert。 以前的时候,需要额外select查询一下,如果有数据就update,如果没有数据就insert。 而现在Orcale数据库都提供了 MERGE 方法来处理这种需求 阅读全文
posted @ 2019-08-18 15:00 暖然 阅读(828) 评论(0) 推荐(0) 编辑