Post
KO

merge into

update 문인데 뒤에 조건에 따라 merge문처럼도 가능하다.

db.collection.update({조건},{업데이트},true,false)

세번째에 true가 들어가면 해당 조건이 기존 컬렉션에 있을 경우에는 update, 없을 경우에는 insert

[출처] merge into 작성자 June
This article is licensed under CC BY 4.0 by the author.