Mongodb查询结果插入新建表中

 Mongo语句如下

var result = db.csmdR.find({"查询条件"})
while(result.hasNext()) db.新建表名.insert(result.next())

 

你可能感兴趣的:(Mongodb)