随笔分类 - Hive
摘要:1.、字符串长度计算函数:length语法: length(string A),返回值: int说明:返回字符串A的长度例子:hive> select length('iteblog') from iteblog;72.、字符串反转函数:reverse语法: reverse(string A)返回值
阅读全文
摘要:1.创建hive表:create table tabname(id int,name string)partitioned by (year int,month int,day int)row format delimited fields terminated by'\t'lines termin
阅读全文
摘要:1、等值比较: =语法:A=B操作类型:所有基本类型描述: 如果表达式A与表达式B相等,则为TRUE;否则为FALSEhive> select 1 from iteblog where 1=1;2、不等值比较: <>语法: A <> B操作类型: 所有基本类型描述: 如果表达式A为NULL,或者表达
阅读全文