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

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

Asked May 28 Modified Jan 1, 0001
Viewed 27
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
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
徐振超@SelectDB7781
answered May 30
Related Questions
海光服务器兼容问题
Doris 3.1 统计信息
1 answers
Doris 3.1 存算分离
1 answers
doris集群运行一段时间后,就会出现任务失败情况。
2 answers
分区表truncate表里的分区数据后磁盘空间不下降,并且新数据无法写入
1 answers
Doris3.1.1版本bigint字段无法查询,应该如何解决?
2 answers

Terms of service Privacy policy

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