gpt4 book ai didi

azure - "' 选择 * ' is only valid with a single input set."

转载 作者:行者123 更新时间:2023-12-04 13:22:12 35 4
gpt4 key购买 nike

尝试学习沙箱中的查询语法 ( https://www.documentdb.com/sql/demo )

SELECT food.id FROM food JOIN t in food.tags WHERE t.name = "oil"

这可行,但如果我想获取整个文档怎么办,所以我尝试了

SELECT food.* FROM food JOIN t in food.tags  WHERE t.name = "oil"

SELECT * FROM food JOIN t in food.tags  WHERE t.name = "oil"

并得到错误:

{
"errors": [
{
"severity": "Error",
"location": {
"start": 7,
"end": 8
},
"code": "SC2040",
"message": "'SELECT *' is only valid with a single input set."
}
]
}

如何取回整个文档?

最佳答案

你想要的是:

SELECT VALUE food FROM food JOIN t in food.tags WHERE t.name = "oil"

关于azure - "' 选择 * ' is only valid with a single input set.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41072638/

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