Created
May 25, 2018 09:53
-
-
Save vunb/8878664e790d9c01ce9a8630a57398fe to your computer and use it in GitHub Desktop.
Revisions
-
vunb created this gist
May 25, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ # Query mongodb by filtering string fields with comparation and convert its data to CSV format using RoboMongo Ref: https://github.com/Studio3T/robomongo/wiki/How-to-export-to-CSV ```js db.getCollection('hsdt').find({ma: { $gte: "1700004001", $lte: "1010005000" }}).toCSV() ```