MySQL GROUP_CONCAT with Nulls
问题 Is there an option to make MySQL's Group_Concat function include nulls? Consider the following example from my source table: userId, questionId, selectionId 7, 3, NULL 7, 4, 1 7, 5, 2 When I query on the selection table with GROUP_CONCAT, I get the following: 7, 4=1,5=2 I would like to get the following: 7, 3=NULL,4=1,5=2 For reference, my query looks like this: Select userId, GROUP_CONCAT(CONCAT(questionId, '=', selectionId)) From selection Group by userId; I also tried adding an IFNULL like