上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 39 下一页
摘要: wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u141-b15... 阅读全文
posted @ 2018-08-22 12:26 chenzechao 阅读(915) 评论(0) 推荐(0)
摘要: 1 -- 根据指定日期找出前后30天内生日的客户 2 select 3 t2.day as etl_dt 4 ,t1.id 5 ,t1.day 6 ,t2.flag_first 7 ,t2.flag_last 8 ,concat(year(t1.day) - 1,t2.day_first) as day_first_1 9 ... 阅读全文
posted @ 2018-08-16 12:39 chenzechao 阅读(327) 评论(0) 推荐(0)
摘要: select regexp_replace(reflect("java.util.UUID", "randomUUID"), "-", "") as uuid ,rand() -- rand_num ,rand(100) -- rand_num_seed ; SELECT * FROM DISTRIBUTE BY RAND() SORT B... 阅读全文
posted @ 2018-08-15 08:41 chenzechao 阅读(145) 评论(0) 推荐(0)
摘要: https://www.python.org/ftp/python/3.6.6/ https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tar.xz ### 通过pip安装itchatpip install itchat ### 导入包import 阅读全文
posted @ 2018-08-13 09:26 chenzechao 阅读(377) 评论(0) 推荐(0)
摘要: -- 指定时间所在的季度的第一天 SQL实现: 2. 创建相应的日期维表可以实现 3. 通过shell可以实现 阅读全文
posted @ 2018-08-09 16:42 chenzechao 阅读(1509) 评论(0) 推荐(0)
摘要: -- 统计数据,原文件见文件中的附件 阅读全文
posted @ 2018-08-09 10:48 chenzechao 阅读(914) 评论(0) 推荐(0)
摘要: -- 切换数据库 use database_name; -- 优化本地查询 set hive.fetch.task.conversion=more; -- 设置hive的计算引擎为spark set hive.execution.engine=spark; -- 打印表头 set hive.cli.print.header=true; set hive.cli.print.row.to... 阅读全文
posted @ 2018-08-09 08:58 chenzechao 阅读(454) 评论(0) 推荐(0)
摘要: -- 列转行 select name ,str[0] as id ,str[1] as age from ( select name ,split(name_tmp,',') as str from ( select 'a,10|b,11|c,12' as name ) t1 later... 阅读全文
posted @ 2018-08-09 08:40 chenzechao 阅读(960) 评论(0) 推荐(0)
摘要: 未完待续 阅读全文
posted @ 2018-08-08 17:32 chenzechao 阅读(1835) 评论(0) 推荐(0)
摘要: hive -S -e "select * from db_name.table_name limit 0"|grep table_name|xargs -n1|sed 's/table_name.//g' 阅读全文
posted @ 2018-08-03 09:42 chenzechao 阅读(797) 评论(0) 推荐(0)
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 39 下一页