1
我在Ubuntu虚拟机上使用MongoDB和Mongochef GUI。我需要做一个查询插入我以前找到的数据。查找查询后MongoDB插入数据
我该怎么做?我认为是这样的:
db.createCollection("prueba", { capped : true, size : 5242880, max : 5000 })
db.gmap.find({ emotion: 1 })
db.prueba.insertMany(db.gmap.find({ emotion: 1 }))
GMAP是我有的其他集合,查找查询返回所需的数据。 感谢
解决。非常感谢! – aserrin55