[英]Using query params in Azure functions and Cosmos DB
I'm using Azure Functions to retrieve data from a Cosmos DB.我正在使用 Azure Functions 从 Cosmos DB 检索数据。 No I have the following SQL query:
不,我有以下 SQL 查询:
SELECT * FROM r WHERE r.city = {city} AND r.district = {district} AND r.max_number_of_people = {people}
Well, I found a way to accomplish what I want.好吧,我找到了一种方法来完成我想要的。 It may not be the only way.
这可能不是唯一的方法。
SELECT * FROM r WHERE r.city = {city} AND r.district = {district} AND ToString(r.max_number_of_people) = {people}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.