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
db.getCollection('hsdt').find({ma: {
$gte: "1700004001",
$lte: "1010005000"
}}).toCSV()