How to search JSON array in MySQL?

后端 未结 8 911
生来不讨喜
生来不讨喜 2020-11-29 06:03

Let\'s say I have a JSON column named data in some MySQL table, and this column is a single array. So, for example, data may contain:

8条回答
  •  天命终不由人
    2020-11-29 06:22

    A possible way is to deal with the problem as string matching. Convert the JSON to string and match.

    Or you can use JSON_CONTAINS.

提交回复
热议问题