This article is a mirror article of machine translation, please click here to jump to the original article.

View: 5344|Reply: 1

MongoDB common query commands

[Copy link]
Posted on 11/23/2021 5:36:45 PM | | | |
The total number of MongoDB queries


MongoDB queries in descending order based on a field


MongoDB queries data based on a single condition


MongoDB looks for data with 999999 >= totalMilliseconds >= 5000 based on interval lookups

  • (>) greater than - $gt
  • (<) Less than - $lt
  • (>=) is greater than or equal to - $gte
  • (<= ) is less than or equal to - $lte



MongoDB queries precisely based on time conditions


MongoDB queries the data for startTime <= 2021-11-01 09:40:07.000


MongoDB deletes data based on conditions


MongoDB deletes all data

(End)






Previous:The SQL statement in PMM MySQL Query Analysis Examples is incomplete
Next:The difference between getLastRowNum() and getLastCellNum() in POIs
Posted on 11/27/2021 11:32:51 PM |
Let's take a look again。。。。。。。。
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com