【发布时间】:2017-10-12 05:37:21
【问题描述】:
我的表中有JSON 类型列名为medium
其中一个字段值,例如["art", "nature"]
我想获得与查询 WHEREmedium LIKE %art%` 等价的行
参考了这个链接,但找不到合适的解决方案
https://dev.mysql.com/doc/refman/5.7/en/json-search-functions.html
【问题讨论】:
-
这个数组还是字符串...?
-
字段是一个数组
-
中表中的数据如何存储?