Home  >  Article  >  Database  >  利用jxl把.xls文件导入到数据库

利用jxl把.xls文件导入到数据库

WBOY
WBOYOriginal
2016-06-07 15:36:081072browse

Workbook wb = Workbook.getWorkbook(new File(E:\\lt.xls)); SimpleDateFormat df = new SimpleDateFormat(yyyyMMdd); Sheet sheet = wb.getSheet(0);// Cell cell = sheet.getCell(2,4); int hang = sheet.getRows(); int lie = sheet.getColumns(); ListH

<p>Workbook wb = Workbook.getWorkbook(new File("E:\\lt.xls"));
    SimpleDateFormat df = new SimpleDateFormat("yyyyMMdd"); 
    Sheet sheet = wb.getSheet(0);
   
   // Cell cell = sheet.getCell(2,4);
    int hang = sheet.getRows();
    int lie = sheet.getColumns();
    List<huadan> list = new ArrayList<huadan>();
   
    for(int x=1;x<p>   
    for(int x=0;x<list.size system.out.println ddddddd this.sharedao.save></list.size></p></huadan></huadan></p>

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn