将大量数据从数据库导入到Excel文档

上传者: yechwng | 上传时间: 2021-09-07 20:55:58 | 文件大小: 650KB | 文件类型: RAR
这是我在公司实习的时候研究的课题,主要将大量数据从数据库导出到Excel文件。(一般是值Excel2007及以后版本)因为Excel2003及以前的版本中能保持的数据量是有限制的。Excel2007及以后版本中的数据能保持100万条记录左右,我用的是Oracle数据库,要导入40万条数据。我主要采用了JXLS和POI的第三方jar包,这几个程序实例,都是我参考各种资料,自己写的,都运行过,能把40万数据导入到Excel文件中,而且性能也挺好的,这几个是程序代码,我把这几个程序的文档总结也上传了,如果要下载的话,可以去我的下载空间。

文件下载

资源详情

[{"title":"( 73 个子文件 650KB ) 将大量数据从数据库导入到Excel文档","children":[{"title":"将大量数据导入Excel表格例程","children":[{"title":"总结","children":[{"title":"大数据量导出","children":[{"title":"sql","children":[{"title":"DBPool.java <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false}],"spread":true},{"title":"export","children":[{"title":"Report2.java <span style='color:#111;'> 9.39KB </span>","children":null,"spread":false},{"title":"ThreadFactory.java <span style='color:#111;'> 3.36KB </span>","children":null,"spread":false},{"title":"Merge.java <span style='color:#111;'> 10.86KB </span>","children":null,"spread":false},{"title":"Test3.java <span style='color:#111;'> 838B </span>","children":null,"spread":false},{"title":"ReadData.java <span style='color:#111;'> 5.51KB </span>","children":null,"spread":false},{"title":"ThreadUtil.java <span style='color:#111;'> 2.19KB </span>","children":null,"spread":false}],"spread":true},{"title":"需要的jar包.txt <span style='color:#111;'> 369B </span>","children":null,"spread":false}],"spread":true},{"title":"Export","children":[{"title":"template2.xlsx <span style='color:#111;'> 3.38KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"sql","children":[{"title":"DBPool.java <span style='color:#111;'> 1.66KB </span>","children":null,"spread":false}],"spread":true},{"title":"export","children":[{"title":"Report2.java <span style='color:#111;'> 9.39KB </span>","children":null,"spread":false},{"title":"ThreadFactory.java <span style='color:#111;'> 3.36KB </span>","children":null,"spread":false},{"title":"Merge.java <span style='color:#111;'> 10.86KB </span>","children":null,"spread":false},{"title":"Test3.java <span style='color:#111;'> 838B </span>","children":null,"spread":false},{"title":"ReadData.java <span style='color:#111;'> 5.51KB </span>","children":null,"spread":false},{"title":"ThreadUtil.java <span style='color:#111;'> 2.19KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"bin","children":[{"title":"sql","children":[{"title":"DBPool.class <span style='color:#111;'> 2.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"export","children":[{"title":"Report2.class <span style='color:#111;'> 9.52KB </span>","children":null,"spread":false},{"title":"Merge$SpreadsheetWriter.class <span style='color:#111;'> 3.59KB </span>","children":null,"spread":false},{"title":"ThreadUtil.class <span style='color:#111;'> 2.74KB </span>","children":null,"spread":false},{"title":"ThreadFactory.class <span style='color:#111;'> 3.83KB </span>","children":null,"spread":false},{"title":"Merge.class <span style='color:#111;'> 7.91KB </span>","children":null,"spread":false},{"title":"Test3.class <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"ReadData.class <span style='color:#111;'> 5.76KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".classpath <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 629B </span>","children":null,"spread":false}],"spread":true},{"title":".project <span style='color:#111;'> 382B </span>","children":null,"spread":false},{"title":"需要的jar包.txt <span style='color:#111;'> 369B </span>","children":null,"spread":false}],"spread":true},{"title":"使用前必读.txt <span style='color:#111;'> 109B </span>","children":null,"spread":false},{"title":"exportPdf","children":[{"title":"src","children":[{"title":"ItextPdfDmo.java <span style='color:#111;'> 4.80KB </span>","children":null,"spread":false},{"title":"Report2.java <span style='color:#111;'> 9.10KB </span>","children":null,"spread":false},{"title":"DBPool.java <span style='color:#111;'> 1.65KB </span>","children":null,"spread":false}],"spread":true},{"title":"bin","children":[{"title":"Report2.class <span style='color:#111;'> 9.52KB </span>","children":null,"spread":false},{"title":"DBPool.class <span style='color:#111;'> 2.47KB </span>","children":null,"spread":false},{"title":"ItextPdfDmo.class <span style='color:#111;'> 6.24KB </span>","children":null,"spread":false}],"spread":true},{"title":".classpath <span style='color:#111;'> 809B </span>","children":null,"spread":false},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 629B </span>","children":null,"spread":false}],"spread":true},{"title":".project <span style='color:#111;'> 385B </span>","children":null,"spread":false},{"title":"需要的jar包.txt <span style='color:#111;'> 174B </span>","children":null,"spread":false}],"spread":true},{"title":"模拟数据","children":[{"title":"exp_usr_excel.dmp <span style='color:#111;'> 13.35MB </span>","children":null,"spread":false},{"title":"exp_usr_excel.log <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false}],"spread":true},{"title":"BigGridDemo.java <span style='color:#111;'> 10.05KB </span>","children":null,"spread":false},{"title":"数据导入","children":[{"title":"src","children":[{"title":"src","children":[{"title":"com","children":[{"title":"gaosheng","children":[{"title":"util","children":[{"title":"ExportData.java <span style='color:#111;'> 1.64KB </span>","children":null,"spread":false},{"title":"examples","children":[{"title":"xls","children":[{"title":"XxlsBig.java <span style='color:#111;'> 4.12KB </span>","children":null,"spread":false},{"title":"HxlsPrint.java <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"HxlsBig.java <span style='color:#111;'> 4.27KB </span>","children":null,"spread":false},{"title":"XxlsPrint.java <span style='color:#111;'> 624B </span>","children":null,"spread":false},{"title":"Xls2Do.java <span style='color:#111;'> 2.44KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"xls","children":[{"title":"HxlsAbstract.java <span style='color:#111;'> 9.05KB </span>","children":null,"spread":false},{"title":"XxlsAbstract.java <span style='color:#111;'> 5.59KB </span>","children":null,"spread":false}],"spread":false},{"title":"database","children":[{"title":"Connect.java <span style='color:#111;'> 1.67KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"database.properties <span style='color:#111;'> 89B </span>","children":null,"spread":false},{"title":"Readme.txt <span style='color:#111;'> 472B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"ReadData.java <span style='color:#111;'> 5.51KB </span>","children":null,"spread":false}],"spread":true},{"title":"ExcelFile","children":[{"title":"src","children":[{"title":"model","children":[{"title":"Employee.java <span style='color:#111;'> 2.03KB </span>","children":null,"spread":false}],"spread":true},{"title":"Test.java <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"Report.java <span style='color:#111;'> 7.72KB </span>","children":null,"spread":false}],"spread":true},{"title":"bin","children":[{"title":"model","children":[{"title":"Employee.class <span style='color:#111;'> 1.95KB </span>","children":null,"spread":false}],"spread":true},{"title":"Report.class <span style='color:#111;'> 8.03KB </span>","children":null,"spread":false},{"title":"Test.class <span style='color:#111;'> 1.91KB </span>","children":null,"spread":false}],"spread":true},{"title":".classpath <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 629B </span>","children":null,"spread":false}],"spread":true},{"title":".project <span style='color:#111;'> 385B </span>","children":null,"spread":false},{"title":"需要的jar包.txt <span style='color:#111;'> 329B </span>","children":null,"spread":false}],"spread":true},{"title":"Excel报表","children":[{"title":"说明.txt <span style='color:#111;'> 208B </span>","children":null,"spread":false},{"title":"Employee.java <span style='color:#111;'> 1.61KB </span>","children":null,"spread":false},{"title":"Test.java <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false},{"title":"Report.java <span style='color:#111;'> 7.71KB </span>","children":null,"spread":false},{"title":"需要的jar包.txt <span style='color:#111;'> 329B </span>","children":null,"spread":false}],"spread":true},{"title":"导出pdf","children":[{"title":"ItextPdfDmo.java <span style='color:#111;'> 4.80KB </span>","children":null,"spread":false},{"title":"Report2.java <span style='color:#111;'> 9.10KB </span>","children":null,"spread":false},{"title":"需要的jar包.txt <span style='color:#111;'> 87B </span>","children":null,"spread":false},{"title":"DBPool.java <span style='color:#111;'> 1.65KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • liuzj64925 :
    正用的上,好
    2018-07-19
  • ltunnh :
    一般般,应该提供jar包
    2018-06-29
  • hailinliu :
    还没看,纯粹为了我的积分
    2018-04-17
  • cky123 :
    不是很实用
    2018-04-13
  • bohaiyuqianglong :
    还没看,纯粹为了我的积分
    2017-09-21

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明