group_concat之把多條記錄的值拼接到一個字段

SELECT userid,group_concat(distinct card_no) as card_no FROM card WHERE card_no <>'' GROUP BY userid  
相關文章
相關標籤/搜索