By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
SET @value := '"test1@test.com;test2@test.com"';
SELECT @value, CONCAT('"[', REPLACE(@value, ';', '", "'), ']"');
@value | CONCAT('"[', REPLACE(@value, ';', '", "'), ']"') |
---|---|
"test1@test.com;test2@test.com" | "["test1@test.com", "test2@test.com"]" |