使用robomongo t3工具,连接上数据库后,右键new connection --> open shell -->输入语句
var c = db.users.find().limit(10000).sort( {follower_count : -1} ); //查询的结果集
while(c.hasNext()) {
db.results.insert(c.next()); //把结果插入到一个空的集合result(result提前建好)
}
mongodb中导出查询后的数据集
最新推荐文章于 2023-11-09 14:50:21 发布