Hello!
There is json, which is written in the data_json with the type "json" in a MySQL table:
{ "name": "Test", "books": [ { "id": 1 }, { "id": 2 } ] }
How do I make a selection id array books where id = 1?
I tried something like that, but it doesn't work:
SELECT * FROM test WHERE data_json -> "$.books[*].id" = 1