Vijay's Blog
I am not your BEST, But I will try
Thursday, December 10, 2015
Add - Remove Column in MongoDB
// add new column and with default value
db.order.update({}, {$set: {"status": 'NEW'}},{multi:true})
//remove a column
db.order.update({}, {$unset: {"status": ''}},{multi:true})
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment