mongodb添加列

2017-11-30  本文已影响0人  JacksonSun

添加列

db.getCollection('表名').update({}, {$set: {content:""}}, {multi: 1})

删除列

db.getCollection('表名').update({},{$unset:{'content':''}},false, true)

上一篇 下一篇

猜你喜欢

热点阅读