Query using group_concat is returning only one row

前端 未结 3 844
旧巷少年郎
旧巷少年郎 2020-12-06 05:26

This is a query that is supposed to get the user\'s information, their project\'s information, and a group_concat of all the image paths that such project is associated to.

3条回答
  •  [愿得一人]
    2020-12-06 06:03

    It's because you didn't use group by clause in the query. So the DBMS will group_concat all rows in one row. Because there is group by project_id for example.

提交回复
热议问题