hiya, i have a table "pictures", and a table "tags". every picture can have 0 or x tags. how can i group the tags, so that they all appear comma-separated in one field in my result set? CONCAT_WS() might be helpfull at some point... table looks like this: pictures: -------- -id -name -path -... tags: ----- -id -name -pic_id (link to pictures.id)
To concatenate two column with ‘,’ operator: update table_name set Result_Column =column1||','||column2 For your Ex: update table_name set Result_Column =pictures||','||tags