Get the App
SLTechnology News&Howtos  ›  Database  › 

How to solve the problem that the matching condition is date type in Sequoiadb

Shulou Source: shulou.com Published: 2022-05-31 19:23:01 11月13日 Update

In this issue, the editor will bring you about how to solve the matching condition for date type in Sequoiadb. The article is rich in content and analyzes and describes for you from a professional point of view. I hope you can get something after reading this article.

[problem description]

Execute db.cs.cl.find (), which specifies that the records of a particular date are queried, and the results match the values of type timestamp. The specific query results are shown in the attachment.

[solution]

Data of type date can be directly compared with data of type timestamp. If you only want to view data of type date, you can use the following command (an is the field name): db.cs.cl.find ({a: {"$date": "2019-05-21"}}, {a: {"$type": 2, "$et": "date"}})

This is how the matching condition for date type in Sequoiadb shared by Xiaobian is solved. If you happen to have similar doubts, please refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Tags: Types data conditions content results analysis query professional small and medium rich in content methods can make commands fields that is articles more for knowledge articles Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Microsoft Docker Linux MariaDB