mysql - Kusto KQL equivalent to with clause
问题描述
I'm trying to find an alternative to MySQL (v8) with clause.
I have some long query that uses with clause for aliasing some result.
with top5 as (
SELECT ....
)
SELECT .... from top5
UNION ALL .... from top5
I'm trying to find the equivalent to with clause in Kusto KQL.
Any help would be appreciated.
解决方案
I think the let
statement is what you are looking for: https://docs.microsoft.com/en-us/azure/kusto/query/letstatement#using-materialize-function
推荐阅读
- sqlite - 我无法在 Flutter 中更新来自 Sqflite 的数据(widget.id 问题)
- java - JAVA如何允许类内的类实例化?
- jupyter-notebook - 在 GCP 上的 JupyterLab Notebook 上显示视频
- python - 当每个元素都是数组时填充新列表
- c# - 使用 C# / .NetCore 签署 Powershellscript
- bash - 获取file-1的修改时间并插入file-2
- api - Evernote 是否支持通过 API 进行 RESTful API 和 webhook 注册?
- css - 有没有像 Material_UI 的 makeStyles() 那样在 React 中编写 CSS 代码的包?
- c++ - 在我的矩阵沙漏计算函数上返回 0
- c# - 通过 Newtonsoft c# 将处理的错误与 json 反序列化分离