gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 01:36:55 29 4
gpt4 key购买 nike

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

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

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

最佳答案

请注意,对于分页,Kusto 有 Stored query results它用于分页,并允许您轻松过滤行号。

我不知道 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

关于sql - 查询数据如何使用 kusto(Azure 数据资源管理器)KQL 中的偏移量进行分页,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72228260/

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