![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
hive
凌夺风
我在这里、等你而来、、
展开
-
hive 使用get_json_object函数进行json字段解析
select code_name from test.json_test where code_name='{"code":"1","name":"张无忌"}';结果》》{"code":"1","name":"张无忌"}select get_json_object(code_name,'$.code') code,get_json_object(code_name,'$.name') namefrom test.json_test wherecode_name='{"code":"1","na...原创 2020-08-28 11:14:52 · 743 阅读 · 0 评论 -
hive sql给查询结果加上一列序号
现有一个表student:select * from student;然后加上一列序号:select row_number() over(partition by 1) as xuhao,a.*from student a;得到结果:原创 2018-08-20 16:24:06 · 25141 阅读 · 3 评论