mongo数据库表怎么增加字段_百度知道 来源: mongo数据库表怎么增加字段_百度知道 mongodb常用操作语句 1、现有表以及数据添加字段 db.tbGoodsConsultant.update({}, {$set:{nFlagState:0}}, false, true); 2、给表字段添加索引 db.tbGoodsConsultant.ensureIndex({nFlagState:1}); 3、增加数据 开发笔记 mikel 2017-06-27 91 热度 0评论