mongo db group count 방법
db.getCollection('product_crawling_queue').aggregate({
$group: {
_id: {
site_id: "$site_id"
},
count: {
$sum: 1
}
}
})
'SQL > MongoDB' 카테고리의 다른 글
| mongo db update 방법. (12) | 2016.04.08 |
|---|---|
| mongo db 배열의 개수 확인하기 (0) | 2016.03.28 |
| MongoDB find array string - 몽고디비 배열 속에 있는 string 찾기 (12) | 2015.11.19 |
| Java Mongoldb where not in (0) | 2015.11.12 |
| java where like 검색 방법. (0) | 2015.11.12 |
댓글