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

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

WBOY
Release: 2016-06-07 15:36:08
Original
1088 people have browsed it

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>
Copy after login

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template