添加列
db.getCollection('表名').update({}, {$set: {content:""}}, {multi: 1})
删除列
db.getCollection('表名').update({},{$unset:{'content':''}},false, true)
添加列
db.getCollection('表名').update({}, {$set: {content:""}}, {multi: 1})
删除列
db.getCollection('表名').update({},{$unset:{'content':''}},false, true)
本文标题:mongodb添加列
本文链接:https://www.haomeiwen.com/subject/jbimbxtx.html
网友评论