GROUP_CONCAT multiple fields with a different separator

Alko

Is it possible to do something like:

GROUP_CONCAT(user, price SEPARATOR ', ') AS items

The result is John3.99, Mike24.99

What I need is something like:

John - 3.99, Mike - 24.99

Basically use another type of separator for price field.

Paul Spiegel
GROUP_CONCAT(CONCAT(user, ' - ', price) SEPARATOR ', ') AS items

Or just

GROUP_CONCAT(user, ' - ', price SEPARATOR ', ') AS items

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Mysql group_concat adds a separator for empty fields

From Dev

Mysql group_concat adds a separator for empty fields

From Java

How to concat multiple Pandas DataFrame columns with different token separator?

From Dev

How to concat multiple Pandas DataFrame columns with different token separator?

From Dev

Awk extract fields with multiple separator

From Dev

GROUP_CONCAT with two fields

From Dev

GROUP_CONCAT with ordering and missing fields

From Java

GROUP_CONCAT numbering with multiple columns group by

From Dev

SQL GROUP_CONCAT split in different columns

From Dev

mysql multiple group_concat order preservation

From Dev

MySQL Use GROUP_CONCAT with Multiple JOINS

From Dev

mysql GROUP_CONCAT DISTINCT multiple columns

From Dev

group_concat with multiple joins in MySQL

From Dev

group_concat() on bit fields returns garbage in Mysql

From Dev

Multiple file upload in different fields

From Dev

Relate different fields in multiple tables

From Dev

GROUP BY and COUNT different fields

From Dev

MySQL - GROUP_CONCAT with two columns from different tables

From Dev

MYSQL: How to append Null value using GROUP_CONCAT and Separator using groupby?

From Dev

SQL Query, Group_Concat of multiple left joins and nested queries

From Dev

Codeigniter Multiple Join Not Getting Sub Cat "Name" with Group_Concat

From Dev

GROUP_CONCAT with FIND_IN_SET, multiple joins

From Dev

Sum of data in multiple rows that echo with GROUP_CONCAT in CodeIgniter

From Dev

SQL Query, Group_Concat of multiple left joins and nested queries

From Dev

Mysql - optimisation - multiple group_concat & joins using having

From Dev

"GROUP_CONCAT()" Multiple columns through foreign key

From Dev

MySQL Group concat line separator

From Dev

group plots by multiple fields

From Dev

ElasticSearch group by multiple fields

Related Related

  1. 1

    Mysql group_concat adds a separator for empty fields

  2. 2

    Mysql group_concat adds a separator for empty fields

  3. 3

    How to concat multiple Pandas DataFrame columns with different token separator?

  4. 4

    How to concat multiple Pandas DataFrame columns with different token separator?

  5. 5

    Awk extract fields with multiple separator

  6. 6

    GROUP_CONCAT with two fields

  7. 7

    GROUP_CONCAT with ordering and missing fields

  8. 8

    GROUP_CONCAT numbering with multiple columns group by

  9. 9

    SQL GROUP_CONCAT split in different columns

  10. 10

    mysql multiple group_concat order preservation

  11. 11

    MySQL Use GROUP_CONCAT with Multiple JOINS

  12. 12

    mysql GROUP_CONCAT DISTINCT multiple columns

  13. 13

    group_concat with multiple joins in MySQL

  14. 14

    group_concat() on bit fields returns garbage in Mysql

  15. 15

    Multiple file upload in different fields

  16. 16

    Relate different fields in multiple tables

  17. 17

    GROUP BY and COUNT different fields

  18. 18

    MySQL - GROUP_CONCAT with two columns from different tables

  19. 19

    MYSQL: How to append Null value using GROUP_CONCAT and Separator using groupby?

  20. 20

    SQL Query, Group_Concat of multiple left joins and nested queries

  21. 21

    Codeigniter Multiple Join Not Getting Sub Cat "Name" with Group_Concat

  22. 22

    GROUP_CONCAT with FIND_IN_SET, multiple joins

  23. 23

    Sum of data in multiple rows that echo with GROUP_CONCAT in CodeIgniter

  24. 24

    SQL Query, Group_Concat of multiple left joins and nested queries

  25. 25

    Mysql - optimisation - multiple group_concat & joins using having

  26. 26

    "GROUP_CONCAT()" Multiple columns through foreign key

  27. 27

    MySQL Group concat line separator

  28. 28

    group plots by multiple fields

  29. 29

    ElasticSearch group by multiple fields

HotTag

Archive