【发布时间】:2020-10-25 03:36:29
【问题描述】:
我有一个表,其中有一个名为 data_json 的字段。
JSON 形状的示例如下:
{
title: "My Title",
arr: ["hello there", "foobar", "foo hello bar"]
}
我只想使用regexp 或like 查找data_json->'$.arr' 包含值的行。
例如:
select * from mytable where ??? like '%hello%';
【问题讨论】:
标签: mysql sql json json-extract