gpt4 book ai didi

azure-data-explorer - 获取联合输出的 Kusto 表名 *

转载 作者:行者123 更新时间:2023-12-05 02:42:18 25 4
gpt4 key购买 nike

Kusto 运算符 union * 从数据库中获取所有表,但一旦数据组合在一起,我们就无法判断哪些行来自何处​​。有没有办法强制 union * 在输出中添加一列,其中包含特定行来自的表的名称?

最佳答案

您可以使用 withsource(参见 documentation )

execute query

union withsource=TableName * 
| summarize count() by TableName
| top 2 by count_

关于azure-data-explorer - 获取联合输出的 Kusto 表名 *,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67680207/

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