MongoDB for real-time location
Db. Callrecordinfo.find (). Count ()
Db. Sendinfo.find (). Count ()
Db. Riderreatimepositon.find (). Count ()
Db. Distributeorderrecord.find (). Count ()
Data that is greater than a certain time
Db. Riderreatimepositon.find ({"Createtime": {"$gt": "2017/8/9 23:25:51"}}). Count ()
Db. Riderreatimepositon.find (). Count ()
Data that is less than a certain time
Db. Riderreatimepositon.find ({"Createtime": {"$lt": "2017/9/1 23:25:51"}}). Count ()
Db. Riderreatimepositon.remove ({"Createtime": {"$lt": "2017/9/1 23:25:51"}}). Count ()
Db. Riderreatimepositon.find ({' createtime ': {"$lt": "2017/8/9 23:25:51"}}). sort ({' Createtime ':-1})
Db. RIDERREATIMEPOSITON.R ({"Createtime": {"$lt": "2017/8/9 23:25:51"}})
Db. Riderreatimepositon.remove ({' createtime ': {"$lt": "2017/8/14 12:58:50"}})
Data for a time period
Db. Riderreatimepositon.find ({"$and": [{"Createtime": {"$gt": "2017/8/9 0:0:0"}},{"Createtime": {"$lt": "2017/8/9 1:0:51" }}]}). Count ()
{' Otsoutcode ': ' 32903933 '}
Db. Riderreatimepositon.find ({' Otsoutcode ': ' 32903933 '}). Sort ({' Createtime ':-1})
Db. Riderreatimepositon.find (). Sort ({' Createtime ':-1})
Db. Distributeorderrecord.find ()
Db. Riderreatimepositon.find (). Count ()
Db. Riderreatimepositon.find (). Sort ({"Createtime": -1}). Count ()
Db. Riderreatimepositon.find (). Count ()
Db. Riderreatimepositon.find ()
Db. Riderreatimepositon.find (). Count ()
Query by condition {' Otsoutcode ': ' 32894507 '}
Db. Riderreatimepositon.find (). Sort ({' Createtime ':-1})
Db. Riderreatimepositon.find (). Sort ({' Createtime ':-1})
Db. Distributeorderrecord.find ()
Db. Riderreatimepositon.find (). Count ()
Db. Ridereatimepositon.find ()
Db. Ridereatimepositon.find ({' Otsoutcode ': ' 32894507 '}). Sort ({"Createtime": -1}). Count ()
Db. Riderreatimepositon.find ()
Db. Riderreatimepositon.update ({},{$unset: {' addtime ': '}},false,true ')
Db. Riderreatimepositon.remove ({"_id": ObjectId ("597fed11d59030276cf737ed")})
Delete a column of operations
Db. Riderreatimepositon.update ({},{$unset: {' demo ': '}},false,true ')
Db. Riderreatimepositon.update ({},{$unset: {' New field ': '}},false,true ')
Add a new list of actions
Db. Riderreatimepositon.update ({},{$set: {' demo ': '}},false,true ')
Db. Riderreatimepositon.update ({},{$set: {' New field ': '}},false,true ')
Db. Riderreatimepositontest.find ()
MongoDB Getting Started four