學會用mysql group_concat

mysql  group_concat用法  常用於不固定列查詢   例:select t.type,group_concat(concat(t.name,'_',t.score))  from table  t  where t.type ;     結果:  數學   張三_100,李四_200,王五_70              語文   ...      group_concat 默認是
相關文章
相關標籤/搜索