diff --git a/mongodb_operations b/mongodb_operations new file mode 100644 index 0000000..5f0d666 --- /dev/null +++ b/mongodb_operations @@ -0,0 +1,6 @@ +利用js代码从mongodb中导出查询数据到文件中 +var c = db.list_users_sponsor_listing.find({sponsorsListing:{$ne:null}}); +while(c.hasNext()) { +    printjson(c.next()); +} +mongo localhost:27017/ghtorrent0619 sponsorsListing_notnull.js > sponsorsListing_notnull.json \ No newline at end of file