Sea*_*lay 3 mysql azure kql azure-data-explorer
有没有办法在 Kusto KQL 中连接列?
例如,对于MySQL (v8) 中world具有列的某些数据集:name
select group_agg(name) from world;
Run Code Online (Sandbox Code Playgroud)
会导致:
| string_agg |
|-----------------------------------------------|
| Afghanistan,Azerbaijan,Bahrain,Bangladesh,... |
Run Code Online (Sandbox Code Playgroud)
使用make_set创建唯一值的动态数组,然后可以使用strcat_array获取列表的字符串值。例如:
StormEvents
| take 10
// get array of the distinct values
| summarize make_set(State)
// get a string value of the array
| extend states = strcat_array(set_State, ", ")
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1639 次 |
| 最近记录: |