Is it possible to do something like:
GROUP_CONCAT(user, price SEPARATOR ', ') AS items
Result John3.99, Mike24.99
John3.99, Mike24.99
I need something like:
John - 3.99, Mike - 24.99
Basically use a different type of delimiter for the price field.
GROUP_CONCAT(CONCAT(user, ' - ', price) SEPARATOR ', ') AS items
Or simply
GROUP_CONCAT(user, ' - ', price SEPARATOR ', ') AS items
Try this way
GROUP_CONCAT( DISTINCT CONCAT(user,',',Price SEPERATOR) ORDER BY items SEPARATOR ';' )
Source: https://habr.com/ru/post/1650472/More articles:Simple string encryption without dependencies - c #An efficient way to compare two lists that remember the origin for each unique element - pythonwhy the table fields go wrong when it is dir = "rtl"? - htmlСогласование последовательности из двух целых чисел в `std:: pair` - c++Assigning nested values to (partially) undefined objects - javascriptzillow api with R problem - XML - xmlRandomly selecting an item from a list of lists gives a ValueError - pythonAngular2 integration in the kernel and node.js file system - node.jsA manually created UIWindow is the wrong size - iosGet child node from SKReferenceNode in SpriteKit SWIFT - swiftAll Articles