问题
I have a string (name lastname,name2 lastname2...)
with values from a database table and I want to display it
like:
name lastname name2 lastname2..
I use group_concat function it works for commma separators but I need new line separator.
group_concat(concat_ws(' ',users.firstname, users.lastname) SEPARATOR '<br>') as contacts_name
回答1:
Try this : "\r\n"
with double quotes, not simple
来源:https://stackoverflow.com/questions/17875870/new-line-separator-doesnt-work-for-group-concat-function