![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
hive
文章平均质量分 57
下辈子是只考拉
这个作者很懒,什么都没留下…
展开
-
hql 随手笔记
1.一次插入多个分区动态分区:create table test_tb(id string,name string)partitioned by (dt string)row format delimitedfields terminate by '\t'stored as orc;set hive.exec.dynamic.partition=true; --开启动态分区set hive.exec.dynamic.partition.mode = nonstrict; -- 动态分原创 2021-09-05 23:29:54 · 121 阅读 · 0 评论 -
hive常用字符串公式
1. 字符串长度计算函数:lengthSELECT length('csdnblog');-- 82. 字符串反转函数:reverseSELECT reverse('csdnblog');-- 'golbndsc'3. 字符串连接函数:concatSELECT concat('www.','baidu.','com');-- 'www.baidu.com'4. 带分隔符字符串连接函数:concat_wsSELECT concat_ws('.','www','baidu','com'原创 2021-04-10 21:57:04 · 1310 阅读 · 0 评论