随笔分类 -  Hive

摘要:1.、字符串长度计算函数:length语法: length(string A),返回值: int说明:返回字符串A的长度例子:hive> select length('iteblog') from iteblog;72.、字符串反转函数:reverse语法: reverse(string A)返回值 阅读全文
posted @ 2018-08-16 16:29 李有病 阅读(479) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2018-08-16 16:28 李有病 阅读(187) 评论(0) 推荐(0) 编辑
摘要:1、等值比较: =语法:A=B操作类型:所有基本类型描述: 如果表达式A与表达式B相等,则为TRUE;否则为FALSEhive> select 1 from iteblog where 1=1;2、不等值比较: <>语法: A <> B操作类型: 所有基本类型描述: 如果表达式A为NULL,或者表达 阅读全文
posted @ 2018-08-16 16:24 李有病 阅读(839) 评论(0) 推荐(0) 编辑

1 2
点击右上角即可分享
微信分享提示