Apache Doris 中文技术论坛
Questions Tags Users Badges

求一个查询一个数组字段包另一个数组中任意值的语法

Asked May 28 Modified Jan 1, 0001
Viewed 25
3.0

一个数组字段包含另外一个数组中的任意一个值,就像下面这种查询,有更简洁的语法吗

WHERE 
array_contains(tags, 101) OR 
array_contains(tags, 205) OR 
array_contains(tags, 310)
edited Jan 1, 0001
Da Wan15
asked May 28
1 Answers

可以看下这个arrays_overlap
https://doris.apache.org/zh-CN/docs/3.0/sql-manual/sql-functions/scalar-functions/array-functions/arrays-overlap

edited Jan 1, 1970
徐振超@SelectDB7171
answered May 30
Related Questions
禁止在唯一表上使用时间序列压缩策略原因
doris 3.0.3 使用multi_match_any字符串搜索函数偶发性报错
fe和be内存占用过高,一直不降
fe节点启动时遇到问题
spark 3.2.4 访问 doris(k8s doris nodeport) 报错
分桶的数量设置多少个合理
1 answers

Terms of service Privacy policy

Powered by Answer - the open-source software that powers Q&A communities.
Made with love © 2025 Apache Doris 中文技术论坛.