Answer the question
In order to leave comments, you need to log in
JSON search in MySQL 5.7?
How to select elements where categoriesId = 4
There is a column: depend it stores a JSON array like:
{"brandsId": [145, 15, 141, 1001, 93, 657], "categoriesId": [41, 4, 65, 24, 218, 890]}
I need to find all entries where categoriesId = 4
select * from `services` where `dependencies`->"$.categoriesId" = 4 - не работает
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question