D
D
Danil Gaisin2020-08-08 15:48:11
MySQL
Danil Gaisin, 2020-08-08 15:48:11

Mysql json_search how to search json data?

There is a query, in theory it should return films with the "action" genre:

SELECT * FROM `list` WHERE `type` = 'cartoon-series' and JSON_SEARCH(genre, 'one', 'Боевик%') is null

But I get the result in general with other genres.
The column in the database is stored as a json object
spoiler
5f2e9ee1a92da795852667.png

How to search by genre?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question