Rumah >pangkalan data >tutorial mysql >利用jxl把.xls文件导入到数据库
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>