繁体   English   中英

查询数据如何使用 kusto(Azure 数据资源管理器)KQL 中的偏移量进行分页

[英]How query data use offset in kusto (Azure Data Explorer) KQL for paging

如何在 KQL 中实现以下 SQL 查询使用偏移量进行分页查询。

select * from testtable where code = '88580' limit 1000 offset 111

我在 KQL 中找不到任何函数可以像 SQL 中的偏移量

请注意,对于分页 Kusto 已存储用于分页的查询结果,并允许您轻松过滤行号。

我不知道 KQL 中的offset ,但您可以添加 row_number 并按它过滤:

let testtable = datatable(code: int) [
    1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
    11, 12, 13, 14, 15
];
testtable
| where code > 0
| serialize
| extend _row=row_number()
| limit 1000
| where _row > 10

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM