How can I concat a character to MySQL results except for the last result?
So:
friends
-------------
friend-a
friend-b
friend-c
friend-d
friend-e
I now do select concat(friends,',') from friends
which actually gives me each friend name with a ,
, but I don't need the ,
for the last one.
I cannot use group_concat here due to it size restriction.
Attempting output
friend-a,
friend-b,
friend-c,
friend-d,
friend-e