I'm looking for a way to update or better in my case concatenate each value into a JSON array. All the value are string. I know that in simpler case I could do, to replace, something like:
SELECT JSON_REPLACE('[1, 2, 3]', '$[0]', 9) AS 'Result';
that would replace the first field with 9; but there's a way to concatenate each value with a fixed string? I know that this is not correct but something like:
SELECT JSON_REPLACE('[1, 2, 3]', '$[*]', concat($[*], 'fixed')) AS 'Result';
to get
'["1fixed", "2fixed", "3fixed"]
Thank you!