【问题标题】:Get results that does not contain in array in cosmos db获取 cosmos db 中数组中不包含的结果
【发布时间】:2020-07-05 17:52:11
【问题描述】:

在 cosmosdb 中有 ARRAY CONTAINS 的支持。但是如果我们想得到一个不包含某些属性的结果呢?有什么东西支持这种情况吗?

【问题讨论】:

    标签: arrays azure azure-cosmosdb contains


    【解决方案1】:

    基于cosmos db支持的Array built-in functions,没有运营商可以实现你的需求。

    所以,您可以使用JOINNot In 运算符:

    select c.array from c
    join c.array in b
    where b.column not in ('111','222')
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-05-10
      • 1970-01-01
      • 1970-01-01
      • 2017-07-21
      • 2021-03-25
      • 2017-12-15
      • 1970-01-01
      相关资源
      最近更新 更多