1、三目运算:hive>select if(a=a,’bbbb’,111) from lxw_dual;
结果:bbbb
2、get_json_object:hive> select get_json_object(data, '$.owner') from test;
结果:amy

3、inner join,join,left join, full join
join默认inner join,两表同时存在,才成功:11+11 22+22
left join:11+11 22+22 33+null
full join:11+11 22+22 33+null null+44
表t1 (id , data) 表t2 (id , data) 数据:
1, 11 11
2, 22 22
3, 33 44
网友评论