MySQL學習(四)查詢

1、group_concat()函數。把groupby的分組中字段數據組合顯示出來函數   select s_id , GROUP_CONCAT(要顯示的字段名)  from table group by 分組字段ui 2、group_by 與 Having 結合 :根據條件篩選分組條件設計   select s_id ,group_concat(f_name) as names from fru
相關文章
相關標籤/搜索