如何在 KQL 中實作以下 SQL 查詢使用偏移量進行分頁查詢。
select * from testtable where code = '88580' limit 1000 offset 111
我在 KQL 中找不到任何函式可以像 SQL 中的偏移量
uj5u.com熱心網友回復:
請注意,對于分頁 Kusto 已存盤用于分頁的查詢結果,并允許您輕松過濾行號。
我不知道offset在 KQL 中,但您可以添加 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
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/475447.html
