上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页
摘要: public void saveToFile(String destUrl) { FileOutputStream fos = null; BufferedInputStream bis = null; HttpURLConnection httpUrl = null; URL url = null; intBUFFER_SI... 阅读全文
posted @ 2019-07-16 17:42 努力挣扎的小兵 阅读(259) 评论(0) 推荐(0) 编辑
摘要: impala 四舍五入后转换成string后又变成一个double的数值解决(除不尽的情况)例如Query: select cast(round(2 / 3, 4)*100 as string)+ +| cast(round(2 / 3, 4) * 100 as string) |+ +| 66.6 阅读全文
posted @ 2019-07-16 17:40 努力挣扎的小兵 阅读(2785) 评论(0) 推荐(0) 编辑
摘要: 先将100000000*1000 的结果转化为二进制: 10111 01001000 01110110 11101000 00000000 由于int类型表示的最大值是32位即:01001000 01110110 11101000 00000000,前面的10111属于溢出部分 将01001000 阅读全文
posted @ 2019-07-16 17:35 努力挣扎的小兵 阅读(1363) 评论(0) 推荐(0) 编辑
摘要: 先扫描驱动表的(外表),外表的每一行驱动内表,然后匹配,所以nest loops不是主要依赖于内表有多少行,而是非常依赖于驱动表到底有多少行参与nested loops,因为驱动表(或者准确的说是驱动的cardinality)越多,那么nested loops的效率会越低,因为内表是索引效率,成本不 阅读全文
posted @ 2018-01-01 21:16 努力挣扎的小兵 阅读(5586) 评论(0) 推荐(0) 编辑
摘要: sql语句执行顺序1.from子句组装来自不同数据源的数据2.where子句基于指定的条件对记录行进行筛选3.group by子句将数据划分为多个分组4.使用聚集函数进行计算5.使用having子句筛选分组6.计算所有的表达式7.select 的字段8.使用order by对结果集进行排序 sql语 阅读全文
posted @ 2018-01-01 21:15 努力挣扎的小兵 阅读(1535) 评论(2) 推荐(0) 编辑
摘要: 依赖jar: <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-core</artifactId> <version>2.9.1</version> </dependency> <dependency 阅读全文
posted @ 2018-01-01 21:10 努力挣扎的小兵 阅读(2125) 评论(0) 推荐(0) 编辑
摘要: 依赖jar <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.17</version> </dependency> Level:日志输出的几种级别 FATAL 0 ERROR 3 WAR 阅读全文
posted @ 2018-01-01 21:07 努力挣扎的小兵 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 依赖jar包 <!-- https://mvnrepository.com/artifact/ch.qos.logback/logback-core --> <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-core 阅读全文
posted @ 2018-01-01 21:02 努力挣扎的小兵 阅读(2946) 评论(0) 推荐(0) 编辑
摘要: 1.将jre改到1.62.工程目录下有一个.settings文件夹,打开org.eclipse.wst.common.project.facet.core.xml做如下修改: 阅读全文
posted @ 2015-03-17 18:29 努力挣扎的小兵 阅读(164) 评论(0) 推荐(0) 编辑
摘要: oracle按照in的顺序进行排序select * from table_name where id in (1,3,7)order by case id when 1 then 1 when 3 then 2 when... 阅读全文
posted @ 2014-12-07 21:26 努力挣扎的小兵 阅读(1358) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页