Concatenate a selected column in a single query?

前端 未结 6 726
别跟我提以往
别跟我提以往 2020-12-21 21:47

I know you can do this, because I\'ve seen it done once before, but I forget where and up until now I haven\'t need to do it.

I have a table called Employees, and it

6条回答
  •  太阳男子
    2020-12-21 22:30

    If you are using MySQL, they have a great function called GROUP_CONCAT that does just that. http://dev.mysql.com/doc/refman/5.0/en/group-by-functions.html#function_group-concat

提交回复
热议问题