Chinaunix

标题: hive中对某个表的某列(id列 ,值都为null)加入递增序列,有什么方法? [打印本页]

作者: moperyblue    时间: 2016-12-20 13:10
标题: hive中对某个表的某列(id列 ,值都为null)加入递增序列,有什么方法?

请教, hive中对某个表的某列(id列 ,值都为null)加入递增序列,有什么方法?
id name
    a
    b
    c
    d
希望结果:
id name
1  a
2  b
3  c
4  d




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2