I have a query in a mysql trigger with a query similar to
BEGIN
set @correos=(select correo from tabla_correos group by correo)
END
the table has the following structure and information
| tabla_correos |
-------------------------
|[email protected] |
|[email protected] |
in the end I want the emails to result in the following way
"[email protected],[email protected]"
but I do not know how to concatenate the emails as a string in a new variable, I do not know how to extract each value, I have been reviewing the documentation for days but I am lost, could you help me?