1. 根据单JSON对象查询
select count(1) from report_configuration r where json_extract(r.report_configuration,'$.dataSetName') = :dataSetName
2.纯数组JSON查询 one代表就遇到第一个就返回 固定写法
SELECT count(1) FROM statistics_property where data_set_name = :dataSetName and JSON_SEARCH(dimensions,"one", :propertyName) IS NOT NULL
3.Json数组套对象
SELECT * FROM statistics_property where JSON_CONTAINS(statistics,JSON_OBJECT('metric','temp_back'))