![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
db2—hive数据迁移
文章平均质量分 70
xiegy0510
这个作者很懒,什么都没留下…
展开
-
hive、db2时间计算函数使用
求两个时间段的日期差:在db2中求两个时间段日期的差:以20180329 - 20180123为例days(date(2018||'-'||03||'-'||29))-days(date(substr(20180123,1,4)||'-'||substr(20180123,5,2)||'-'||substr(20180123,7,2)))先将字符串转换成date类型、然后通过days函数进行计算,...原创 2018-03-30 16:42:24 · 685 阅读 · 0 评论 -
将hive中的某张表的数据导入oracle的某张表中
1、将hive中的数据通过hive -e 命令导出到文件中默认分割符为"\t"。 FILE_NAME=`echo " file.del|select * from table" | awk -F'\|' '{print $1}' `; Sql=`echo "file.del|select * from table " | awk -F'\|' '{print $2}'`; hive -e ...原创 2018-07-25 17:55:18 · 1052 阅读 · 0 评论 -
linux下db2、oracle、hive过程调用数据的导入导出
db2: db2 connect to database user username using pwd db2 "CALL schema.procedure('入参',?,?)" > albert.log; db2 load client from /table.del of del modified by anyorder CODEPAGE=1208 coldel0x01 ins...原创 2019-02-28 17:30:44 · 777 阅读 · 0 评论