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

.net - Bulk insert via Dapper is slower than inserting rows one-by-one -

shared memory - gstreamer shmsrc and shmsink with h264 data -

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -