首页 > 解决方案 > 是否可以在 Clickhouse 中动态选择表和列的内容?

问题描述

我需要运行一个查询,该查询返回数据库列表中每个表的每一列的最大值。

Select 
x.database, 
x.table, 
x.name, 
x.type,
( select max(x.name) from x.database/x.table )
from system.columns x
where x.database in ('test1','test2','test2')

这可能吗?

标签: sqlclickhouse

解决方案


推荐阅读