list - MySql select all records and show in a single column with comma seperator -


this question has answer here:

my mysql table this;

id    name 1     test1 2     test2 3     test3 

and want write tsql , list them this;

test1,test2,test3

is possible? thanks.

in mysql, can use group_concat this:

select group_concat(name separator ',') table; 

Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -