mysql group by 多個字段進行分組並獲取最新一條的記錄

select a.ZNCC_QTNDJL_QTNDZT AS znccQtndjlQtndzt, count(*) AS count, GROUP_CONCAT(ZNCC_QTNDJL_CFNM,':',b.XT_CFXX_CFBH) AS znccQtndjlCfbh FROM (SELECT * FROM (SELECT * FROM ZNCC_QTNDJL ORDE
相關文章
相關標籤/搜索