鉴于:
SELECT * FROM OPENJSON(JSON_QUERY('[{"JobId":"2838","Options":1}, {"JobId":"2839","Options":1}]'))
给我们:
key value type
0 {"JobId":"2838","Options":1} 5
1 {"JobId":"2839","Options":1} 5
如何更改查询以返回作业ID?
value
2838
2839
1条答案
按热度按时间hs1ihplo1#
这个应该可以了