Fixed Can I concatenate multiple MySQL rows into one field? #dev #it #asnwer
Fixed Can I concatenate multiple MySQL rows into one field? #dev #itĀ #asnwer
Can I concatenate multiple MySQL rows into one field?
Using MySQL, I can do something like:
SELECT hobbies FROM peoples_hobbies WHERE person_id = 5;
and get:
shopping fishing coding
but instead I just want 1 row, 1 col:
shopping, fishing, coding
The reason is that Iām selecting multiple values from multiple tables, and after all the joins Iāve got a lot more rows than Iād like.
Iāve lookedā¦
View On WordPress





















