I got a requirement to develop a Java app to load the data from an excel sheet to a MySQL database table everyday.
My actual requirement is when ever the user opens the application, it should automatically load the data from Excel -> MySQL database table.
I do not have idea to import the data from excel to MySQL table.
Can anyone help me in this?
Thanks in advance.
Create a dummyTable for daily load
Clear it before you begin
Save your excel in same column structure as dummyTable in csv format, comma delimited
Run:
Proceed to use it (dummyTable). Clear it.
Yes, you can generate the mysql queries from excel using PHP.
Output:
I have written PHP code for generate all queries from excel with sngle click for our production system
You can import the data from excel using MySQL LOAD DATA INFILE command..
For automation you have to write a function to run the MySQL command on load..