久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      mysql實(shí)現(xiàn)大量數(shù)據(jù)轉(zhuǎn)換為數(shù)組

      mysql實(shí)現(xiàn)大量數(shù)據(jù)轉(zhuǎn)換為數(shù)組

      需求分析:

      如圖:

      mysql實(shí)現(xiàn)大量數(shù)據(jù)轉(zhuǎn)換為數(shù)組

      將上圖所示的excel文件中,各個(gè)字段下的對(duì)應(yīng)廣告位以數(shù)組的形式呈現(xiàn)如下圖鎖所示:

      (免費(fèi)學(xué)習(xí)視頻教程推薦:mysql視頻教程)

      mysql實(shí)現(xiàn)大量數(shù)據(jù)轉(zhuǎn)換為數(shù)組

      解決方案:

      1、首先利用mysql客戶端Navicat for MySQL批量導(dǎo)入excel文件,并建表;

      2、然后使用mysq函數(shù)GROUP_CONCAT,具體方法如下:

      select 'country' ,country,GROUP_CONCAT(placementid) from 2019q2 group by country  union all select 'year' ,year,GROUP_CONCAT(placementid) from 2019q2 group by year  union all select 'quarter' ,quarter,GROUP_CONCAT(placementid) from 2019q2 group by quarter

      相關(guān)文章教程推薦:mysql教程

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)