JSON 存储在表中的“DataJson”列中
[{
"KickOffDate": "1-Jan-2019",
"TeamSize": "11",
"ClientEngineer": "Sagar",
"WaitingPeriod": "16.5"
}]
询问
SELECT JSON_VALUE(DataJson,'$.KickOffDate') AS KickOffDate
, JSON_VALUE(DataJson,'$.ClientEngineer') AS ClientEngineer
FROM [ABC].[Deliver]
结果
KickOffDate ClientEngineer
NULL NULL
结果应该是:
KickOffDate ClientEngineer
1-Jan-2019 Sagar