Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the command lines of MongoDB Query?

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

In this issue, the editor will bring you what are the command lines of MongoDB Query. The article is rich in content and analyzed and described from a professional point of view. I hope you can get something after reading this article.

Query.All ("name", "a", "b"); / / match arrays through multiple elements

Query.And (Query.EQ ("name", "a"), Query.EQ ("title", "t")); / / satisfy multiple conditions at the same time

Query.EQ ("name", "a"); / / equals

Query.Exists ("type", true); / / determine whether the key value exists

Query.GT ("value", 2); / / greater than >

Query.GTE ("value", 3); / / greater than or equal to > =

Query.In ("name", "a", "b"); / / includes all values specified, and different types of conditions and values can be specified

Query.LT ("value", 9); / / less than <

Query.LTE ("value", 8); / less than or equal to

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report