mysql GROUP_CONCATで空データを削除
#mysql GROUP_CONCATで空データを削除
##Before
ID GROUP_CONCAT(VAL)
1 ,64,66,,203,214,204
##After ID GROUP_CONCAT(VAL) 1 64,66,203,214,204
###置き換え
select id,replace(group_concat(val),',,',',') from test group by id
###ifで判定
select id,group_concat(if(val ='',null, val)) from test group by id
###Nullifを使用する
select id,group_concat(Nullif(val,'')) from test group by id