SQL/MongoDB
mongo db update 방법.
SSaMKJ
2016. 4. 8. 03:27
mongo db 에서 multi update 방법
db.getCollection('site_product_price').update( { update_dttm: /2016-04-0/ }, { $set: { is_new: true } }, false, true )
$set 이 없으면 해당 document 값이 override 되기 때문에 주의가 필요하다.