• Post Reply Bookmark Topic Watch Topic
  • New Topic

read xls file in java  RSS feed

 
Deeps Mistry
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have an xls sheet which contains data to be stored in to the database.

Since there are around 2000 rows to be inserted from xls to the DB tables, is there any way in java where in i can read the xls file and query insert statement .

Thanku



Cheers

 
Paul Clapham
Sheriff
Posts: 22844
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A lot of people use Apache POI for reading Excel spreadsheets in Java.

(I'm not sure what you mean by reading a query insert statement so I will leave that part unanswered.)
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apache POI and JExcelAPI are the most often used libraries for reading Excel file. Check out AccessingFileFormats.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!