📜  sql如何查询存储在字段中的数据json - Javascript代码示例

📅  最后修改于: 2022-03-11 15:03:20.747000             🧑  作者: Mango

代码示例1
select  *
from employees
where  json_value(home_address,'$.state')='AR'

declare @json nvarchar(max) = N'{"employee":[{"id":1,"name":{"first":"Jane","middle":"Laura","last":"Jones"},"address":{"home":"11th Ave W","work":"10th Ave W","city":"Tampa","zipcode":"33601","state":"Florida"}}]}';