Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

After the extraction of data, it saves to an excel file. I would like it to save in MySQL database instead of the excel file.

Platform used: Eclipse, MySQL

share|improve this question
    
What is the structure of your data? Does it map to the database? –  user647772 Feb 2 '12 at 8:33
1  
First of all - read docs about it. If you wait that we'll do all your job - you are wrong. Ask the question. Don't make us to solve your problems –  Oleg Dok Feb 2 '12 at 8:34

2 Answers 2

To implement this , you need to have 2 JAR FILES that are APACHE-POI and mysql-connector.

First, to fetch data from excel file , you need to use APACHE-POI library. And as you get data row by row , insert data into mysql table using mysql-connector jar file.

It will be easy if the Structure of the excel file is same as table in MYSQL.

share|improve this answer
    
Okay thank you!:) –  Androidf Feb 3 '12 at 8:57

You can achieve this functionality By using Apache POI and mysql connector

you can also check JexcelAPI and JXL.

as @vicky said maintaining the structure of your excel same as database table will make your job easy and that way you will get less errors comparatively.

share|improve this answer
    
Alright thanks alot:) –  Androidf Feb 3 '12 at 8:57
    
@Androidf u may select one of the posts as answer –  Balaswamy Vaddeman Feb 3 '12 at 9:00

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.