Wednesday, 6 January 2016

MongoDB -- Update

Updating the collection:

db.collectionname.update({key1:value1},{$set:{key2:value2}},{multi:true})


similarly equal to update collectionname set key2 = value2 where key1 = value1

No comments:

Post a Comment