sql - 是否可以在 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')
这可能吗?
解决方案
推荐阅读
- javascript - Reactjs 中的 setState 不是函数
- python - 为什么我的 python 没有正确安装,即使我没有错误?
- javascript - 在输入的检查状态下更改标签背景
- intellij-idea - 如何告诉 intellij 在失败的命令上恢复宏执行?
- javascript - 将对象数组分解为二维数组
- node.js - 变量赋值
- vue.js - 使用 vue-ci-service 创建新变量,如 `BASE_URL` 以在 index.html 中使用
- sql-server - 使用案例语句时计算分组计数
- integration-testing - 新的 integration_test 包只显示“测试开始...”[Android]
- javascript - 为什么文本的颜色没有改变?