04 2018 档案

摘要:Hive中日期函数总结:1.时间戳函数日期转时间戳:从1970-01-01 00:00:00 UTC到指定时间的秒数select unix_timestamp(); --获得当前时区的UNIX时间戳select unix_timestamp('2017-09-15 14:23:00'); selec 阅读全文
posted @ 2018-04-18 16:36 夕阳下的无名草 阅读(269) 评论(0) 推荐(0)
摘要:(1)in 不支持子查询 eg. select * from src where key in(select key from test);支持查询个数 eg. select * from src where key in(1,2,3,4,5);in 40000个 耗时25.766秒in 80000 阅读全文
posted @ 2018-04-16 17:17 夕阳下的无名草 阅读(1365) 评论(0) 推荐(0)