1

Suppose I have this rows in a table

hello
guys
how
are
you?

My expected result is a single row like this one:

hello, guys, how, are, you?

What can I do?

1
  • 3
    Hint: GROUP_CONCAT(). Commented Sep 24, 2019 at 17:29

1 Answer 1

4

As GordonLinoff mentioned in the comment, GROUP_CONCAT works.

I don't know your table names or table structures, but you can do something like:

SELECT GROUP_CONCAT(col_name) FROM table WHERE ...

You can read about it here.

Sign up to request clarification or add additional context in comments.

1 Comment

I just saw @GordonLinoff posted the same thing I did.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.