gpt4 book ai didi

mysql - clickhouse数组查询

转载 作者:行者123 更新时间:2023-11-29 07:30:58 24 4
gpt4 key购买 nike

我在表中有一个数据类型为 Array(Int32) 的列。要查询数组中的项目,我使用以下查询。

select count(id) from user where has(array,2);

如何查询数组中的多个元素? Clickhouse 中是否有任何in 查询?

我想要下面提到的查询

select count(id) from user where has(array,2) or has(array,3)

最佳答案

hasAll函数 检查一个数组是否是另一个数组的子集。

关于mysql - clickhouse数组查询,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51300511/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com