list - MySql select all records and show in a single column with comma seperator -
this question has answer here:
- php mysql group concat , group by 2 answers
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
Post a Comment