티스토리 뷰
# quiz3_test document 데이터 body(배포 -> 삭제) 업데이트
{
"status" : {
"code" : "999",
"body" : "배포"
}
}
db.quiz3_test.updateMany( {"status.code" : "999", "status.body" : "배포"},
{ $set: { "status.body" : "삭제" } },
{ upsert: true } )
'데이터베이스 > MongoDB' 카테고리의 다른 글
MongoDB 검색 방법 (0) | 2020.02.11 |
---|
댓글