简体   繁体   English

Azure 逻辑应用程序:如何执行连接查询

[英]Azure Logic Apps: How do I execute a join query

I am trying to run a query which joins 2 tables from an Azure SQL Database.我正在尝试运行一个查询,该查询连接 Azure SQL 数据库中的 2 个表。 When I run the query in SQL editor I get the result I need.当我在 SQL 编辑器中运行查询时,我得到了我需要的结果。

However In order to allow users on my website to filter the data I am displaying from this database I am using an Azure Logic App with the query being unsuccessful giving me the following error "BadRequest. Http request failed: the content was not a valid JSON. Error while parsing JSON: 'Unexpected character encountered while parsing value: R. Path '', line 0, position 0."但是,为了允许我网站上的用户过滤我从该数据库中显示的数据,我正在使用 Azure 逻辑应用程序,查询不成功,给我以下错误“BadRequest。Http 请求失败:内容无效 JSON . 解析 JSON 时出错:“解析值时遇到意外字符:R。路径”,第 0 行,position 0。

The query is查询是

"select *
from [dbo].[Players] e
inner join [dbo].[Player_Stats] p
on e.playerID = p.playerID
order by Assists DESC"

I have no idea why this would be the case, can anyone help me?我不知道为什么会这样,有人可以帮助我吗?

Appears to be a JSON deserialization error, make sure the result is cleared of any special characters, quotes or escape characters before passing it on the SQL activity.似乎是 JSON 反序列化错误,确保在将结果传递给 SQL 活动之前清除所有特殊字符、引号或转义字符。

Further checkout MS docs for SQL connector here and for functions for escape characters here .在此处进一步检查 SQL 连接器的 MS 文档,并此处查看转义字符的功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM