Get the App
SLTechnology News&Howtos  ›  Development  › 

Operation example of mongo under thinkphp

Shulou Source: shulou.com Published: 2022-06-03 10:50:41 11月15日 Update

This article mainly introduces the operation example of mongo under thinkphp, which is very detailed and has certain reference value. Friends who are interested must finish it!

The operation of mongo under thinkphp

1. Many conditional statements on the Internet are only one greater than or one less than, and there are no two merged statements, such as those greater than 2 and less than 4.

$where ['_ string'] = 'this.b > 2 & this.bwhere ([])-> save ([' averse = > 1])

Note to 5.mongo:

Mongo has relatively strict control over data types. If you save a 1 of int, you can't find it with'1'! The above are all the contents of this article entitled "examples of mongo under thinkphp". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Configuration files examples content conditions articles values interests just multiple fields guys partners data solutions more models knowledge types industries Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Shulou Technology Huawei Shulou Information Redmi