在mongo shell中执行以下命令:
在表market
中新增字段count
,并且给所有的记录都设置默认值0.0
db.getCollection('market').update({},{$set:{count:'0.0'}},{multi:true})
在mongo shell中执行以下命令:
在表market
中新增字段count
,并且给所有的记录都设置默认值0.0
db.getCollection('market').update({},{$set:{count:'0.0'}},{multi:true})