如何在同一查询中使用 DISTINCT 和 VALUE?
How can I use DISTINCT and VALUE in same query?
我试图从以下查询中获取仅包含值的数组
SELECT DISTINCT c.Section
FROM c
WHERE c.brand = 'monki'
AND c.Consumer = 'Storelens_V2'
所以我改成了这个
SELECT DISTINCT VALUE c.Section
FROM c
WHERE c.brand = 'monki'
AND c.Consumer = 'Storelens_V2'
但这给出了错误
Failed to query item for container formatteddata:
Cannot set property 'headers' of undefined
如何同时使用 distinct 和 Value?
SELECT DISTINCT VALUE(c.Section)
FROM c
WHERE c.brand = 'monki'
AND c.Consumer = 'Storelens_V2'
很奇怪,通过过滤掉空值这个查询有效,我真的不明白为什么只是简单地添加一个 where 子句 where distinct_property != null 直接解决了问题
我试图从以下查询中获取仅包含值的数组
SELECT DISTINCT c.Section
FROM c
WHERE c.brand = 'monki'
AND c.Consumer = 'Storelens_V2'
所以我改成了这个
SELECT DISTINCT VALUE c.Section
FROM c
WHERE c.brand = 'monki'
AND c.Consumer = 'Storelens_V2'
但这给出了错误
Failed to query item for container formatteddata:
Cannot set property 'headers' of undefined
如何同时使用 distinct 和 Value?
SELECT DISTINCT VALUE(c.Section)
FROM c
WHERE c.brand = 'monki'
AND c.Consumer = 'Storelens_V2'
很奇怪,通过过滤掉空值这个查询有效,我真的不明白为什么只是简单地添加一个 where 子句 where distinct_property != null 直接解决了问题