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

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

Asked May 28, 2025 Modified Jan 1, 0001
Viewed 30
3.0

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

WHERE 
array_contains(tags, 101) OR 
array_contains(tags, 205) OR 
array_contains(tags, 310)
edited Jan 1, 0001
Da Wan25
asked May 28, 2025
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
徐振超@SelectDB8176
answered May 30, 2025
Related Questions
数据库备份恢复
1 answers
Stream Load时Http Connection aborted
Doris无法查询information_schema.tables表信息
1 answers
3.0.8版本 BE节点疯狂打印no such rowset ********
doris单节点fe出现了 Current group size:从1 变成2
2 answers
读取paimon外表,表中同时存在array<double>和bigint类型字段时,会使 ”bigint字段的比较过滤条件“失效
1 answers

Terms of service Privacy policy

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