我知道我需要使用FOR JSON才能做到这一点,我只是不确定如何按某个列进行分组。3FY4HQ7RB 2020-05-26: ["occupancy tax","room tax"] 5e61836ed0687c000143d77e OTA Prepaid ON res.property = tax.property
FOR
我们正在尝试使用SQLServer 2016中的FOR JSON Path从SQL查询中形成嵌套数组。SQL查询:B.name as [child.name], from Table 1 join Table 2 on Table1.ID=Table 2.ID FOR JSON PATH[{ "child:"[
{&q