美文网首页
HIVE系列

HIVE系列

作者: chenyang_ml | 来源:发表于2017-04-12 09:38 被阅读0次
    1. 行转列

    select max(ubi.key), concat_ws(',', collect_set(ua.number)) as number from user_basic_info ubi

    example
    key number
    a 1
    a 2
    b 1
    convert to
    a 1,2
    b 1

    相关文章

      网友评论

          本文标题:HIVE系列

          本文链接:https://www.haomeiwen.com/subject/iawpattx.html