Mysql
 sql >> Database >  >> RDS >> Mysql

Funzione di aggregazione in MySQL - elenco (come LISTAGG in Oracle)

Stai cercando GROUP_CONCAT( )

Prova questo:

select group_concat(MyString separator ', ') as myList from table
where id < 4

Ovviamente puoi group by i risultati.