Answers for "use concat in group_concat"

SQL
1

use concat in group_concat

SELECT GROUP_CONCAT(
	CONCAT(
		'{ID:',	ID,
        ',ParentID:', ParentID,
        '}'          
	) SEPARATOR ","
) FROM table
Posted by: Guest on February-15-2022
1

use group_concat in concat

SELECT
    CONCAT(`Name`, ':', GROUP_CONCAT(`Value` SEPARATOR ',')) AS `Name`
FROM table
GROUP BY `Name`
Posted by: Guest on February-15-2022

Code answers related to "SQL"

Browse Popular Code Answers by Language