zoukankan      html  css  js  c++  java
  • MongoDB学习

    查找表中 t 时间字段大于 ‘2015-10-01 10:10:10’ 且小于‘2015-10-15 10:10:10’ 且在存在 x字段 且 x字段值 包含'abc'的所有行

    {

    "t": {"$gt": "2015-10-01 10:10:10", "$lt":"2015-10-15 10:10:10"},

    "x": {"$ne": null, "$exists":true, "$regex": '.abc.', "$options": 'i'}

    }

    类似:select * from mongodb.collections where t>'2015-10-01 10:10:10' and t<'2015-10-15 10:10:10' and x <> null and x like '%abc%'

  • 相关阅读:
    Serialize&Deserialize
    Async&Await
    Generic
    Enum
    Array
    String
    Nullable
    Collection
    Class&Struct
    Interface
  • 原文地址:https://www.cnblogs.com/fery/p/4892242.html
Copyright © 2011-2022 走看看