03 2021 档案

摘要:数据导入 向表中装载数据(Load) 1.语法 load data [local] inpath '数据的 path' [overwrite] into table student [partition (partcol1=val1,…)]; (1)load data:表示加载数据 (2)local 阅读全文
posted @ 2021-03-27 07:36 冰底熊 编辑
摘要:1)启动 Hive bin/hive 2)使用 Hive hive> show databases; hive> show tables; hive> create table test (id int); hive> insert into test values(1); hive> select 阅读全文
posted @ 2021-03-27 05:29 冰底熊 编辑
摘要:常用日期函数 1.返回当前或指定时间的时间戳 select unix_timestamp();select unix_timestamp("2020-10-28",'yyyy-MM-dd'); 2.将时间戳转为日期格式select from_unixtime(1603843200); 3.当前日期 阅读全文
posted @ 2021-03-23 20:03 冰底熊 编辑
摘要:函数 查看系统自带的函数 show functions; 显示自带的函数的用法 desc function upper; 详细显示自带的函数的用法 desc function extended upper; UDF > 一进一出 (upper) UDAF > 多进一出 (count) UDTF > 阅读全文
posted @ 2021-03-21 20:34 冰底熊 编辑

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