08 2018 档案
摘要:https://blog.csdn.net/sunnyyoona/article/details/62894761 select sum(pitem) from (select map_values(repay_principal) principal from dw.dw_xxx) t later
阅读全文
摘要:今天遇到个问题: 利用java程序从云梯上读文件,解析出来的内容,会出现null,和\N。 1. 字符串null是因为,当字段=‘’时,存储为null。利用命令 alter table adl_cici_test_fdt set serdeproperties('serialization.null
阅读全文
摘要:使用join连表,缺陷的情况下是inner join,开发中使用的left join和right join属于outer join,outer join还包括full join 现有两张表,Table A 是左边的表。Table B 是右边的表。其各有四条记录,其中有两条记录name是相同的: 1.
阅读全文
摘要:UDF UDAF UDTF java 和 python 实现udf的对比: http://whlminds.com/2015/10/07/hive-udf-java-python/
阅读全文
摘要:select id, str_to_map(concat_ws(',',collect_set(concat(substr(repay_time,0,7), ':',round(interest,2)))),',',':') repay_interest from 50_repay t select
阅读全文
摘要:select * from ( select t1.instalment_id as r_id , t2.instalment_id as p_id from (select instalment_id from r_i ) t1 left join (select instalment_id fr
阅读全文
摘要:https://blog.csdn.net/zhangliangzi/article/details/51884863 一、查看MySQL运行情况SHOW STATUS; 二、查看INNODB数据库引擎运行状态SHOW ENGINE INNODB STATUS; 三、查看当前正在进行的进程,对于有锁
阅读全文
摘要:https://blog.csdn.net/haiross/article/details/17002119 https://blog.csdn.net/haiross/article/details/17002509
阅读全文