摘要: 问题:有一列数据,需要累计显示出来 比如:id salary 查询结果:id salary sumSalary 1 10000 1 10000 10000 2 20000 2 20000 30000 3 30000 3 30000 60000 解决方案 1、使用自定义变量 ①用 Set 定义变量 m 阅读全文
posted @ 2017-07-30 07:52 woqiaoxun 阅读(5731) 评论(0) 推荐(0) 编辑
摘要: docx4j版本:3.0.1 修改jar包:docx4j-ImportXHTML maven配置为: 具体代码位置:\org\docx4j\convert\in\xhtml\XHTMLImporterImpl.java 中 processInlineBoxContent方法 代码修改前: 代码修改后 阅读全文
posted @ 2017-06-15 18:12 woqiaoxun 阅读(2240) 评论(0) 推荐(0) 编辑
摘要: 一、Java基础 1、String类为什么是final的。 2、HashMap的源码,实现原理,底层结构。 3、说说你知道的几个Java集合类:list、set、queue、map实现类咯。。。 4、描述一下ArrayList和LinkedList各自实现和区别 5、Java中的队列都有哪些,有什么 阅读全文
posted @ 2017-01-02 21:34 woqiaoxun 阅读(356) 评论(0) 推荐(0) 编辑
摘要: public class PathTest { public static void main(String[] args) { //获取根路径三种方式 System.out.println(PathTest.class.getClassLoader().getResource("")); System.out.println(ClassL... 阅读全文
posted @ 2016-12-18 20:22 woqiaoxun 阅读(204) 评论(0) 推荐(0) 编辑
摘要: SUBSTRING_INDEX(str,delim,count) Returns the substring from string str before count occurrences of the delimiter delim. If count is positive, everythi 阅读全文
posted @ 2016-11-18 10:16 woqiaoxun 阅读(191) 评论(0) 推荐(0) 编辑
摘要: eg:计划url中有多少个小数点 select length('www.mysql.com')-length(REPLACE('www.mysql.com','.','')); 阅读全文
posted @ 2016-11-18 10:15 woqiaoxun 阅读(1380) 评论(3) 推荐(1) 编辑
摘要: 注意: 1.变量的定义不要和你的select的列的键同名!不然,fetch into 会失败! 2.变量定义顺序不对会报错 “Variable or condition declaration after cursor or handler declaration” 报错参见:http://stac 阅读全文
posted @ 2016-11-02 19:58 woqiaoxun 阅读(1476) 评论(0) 推荐(0) 编辑
摘要: import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.io.RandomAccessFile; import java.io.SequenceInputStream; import java.util.Vector; public class Ran... 阅读全文
posted @ 2016-11-01 21:46 woqiaoxun 阅读(1418) 评论(0) 推荐(0) 编辑
摘要: 方式1.ByteArrayInputStream 方式2.FileChannel 阅读全文
posted @ 2016-10-31 06:37 woqiaoxun 阅读(10565) 评论(0) 推荐(2) 编辑
摘要: 1.需要序列化的类 2.实现序列化 输出:name:joey age:0 因为age字段被transient关键字修饰,无法序列化,所以获得的值为0,而不是11 阅读全文
posted @ 2016-10-28 07:02 woqiaoxun 阅读(616) 评论(0) 推荐(0) 编辑