【发布时间】:2019-09-11 04:34:35
【问题描述】:
我写了一个查询来获取客户,如下所示。
SELECT customer
FROM catalog join industry in catalog.Industy
join category in industry.Category
join Subcategory in category.Subcategory
join product in Subcategory.Product
join MethodOfPreparation in product.MethodOfPreparation
join customer in MethodOfPreparation.Customer
但是,我得到了以下错误
SQL 查询超出了最大连接数。允许的限制是 5
我该如何解决这个问题。请任何人帮助我?
【问题讨论】:
-
也许你可以使用一个临时表来存储一些连接,see here。
-
您的
JOIN语句缺少ON子句。也许这就是问题所在,而不是JOINs的数量。 -
如果没有收到请给我样品
-
我在 cosmos db 中执行这个查询,我可以在那里使用临时表
标签: azure-cosmosdb