select t.json,t.json->"$.form" from table t
where json_contains(t.json->"$.form","\"7ca045406eb24d25a0a3f8bf64107f55\"")
本文深入探讨了使用SQL进行复杂查询的技术,特别是如何利用JSON数据类型和函数进行精确筛选。通过具体示例,读者将学会如何在包含JSON字段的表格中搜索特定元素。
select t.json,t.json->"$.form" from table t
where json_contains(t.json->"$.form","\"7ca045406eb24d25a0a3f8bf64107f55\"")
2万+
1万+
2624