gpt4 book ai didi

azure - 当放置在 Azure 函数的 CosmosDB 绑定(bind)中时,OFFSET 和 LIMIT 不起作用

转载 作者:行者123 更新时间:2023-12-03 00:24:31 25 4
gpt4 key购买 nike

我已按照post中提到的流程进行操作。在我的 sqlquery 中提供 OFFSET 和 LIMIT 的值。下面是它的样子

SELECT * FROM c where c.recordType = 'employees' OFFSET udf.convertToNumber('0') LIMIT udf.convertToNumber('200')

但是面对这个错误,"message\":\"语法错误,'udf' 附近的语法不正确。\"

请问有什么帮助吗?

最佳答案

为什么不只应用 OFFSET 0 LIMIT 200,而是调用 udf 将字符串 0 转换为数字 0,将字符串 200 转换为数字 200?

关于azure - 当放置在 Azure 函数的 CosmosDB 绑定(bind)中时,OFFSET 和 LIMIT 不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60811214/

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