Json Array - [{"a":1},{"a":2}]
Is there a way that I can update/set each object in this array with a single query ?.
I can update an specific object using `
SELECT JSON_SET('[{"a":1},{"a":2}]','$[0].b','new val')
which results
[{"a": 1, "b": "new val"}, {"a": 2}]
But I need
[{"a": 1, "b": "new val"}, {"a": 2, "b": "new val"}]
. I use mysql 8.0.22