well, you can tried using the excel import function that comes with phpmyadmin http://www.phpmyadmin.net/home _page / - it does not require any additional plug-ins or scripts and is fairly straightforward to use. In phpmyadmin, if you click on the database table which you wish to import the data to , there is a link on the bottom left corner which says "insert data from a text file into the table" - although it says text file it still can be used to import an excel file. When you click on this link you will be taken to a page where you will be asked for the file name (the excel file should be saved as a csv file), how the fields in the file are terminated (you would change this to a "," without the quotation marks), and other data formatting attributes (these are usually left blank).
you have a in-memory representation of the data to insert? simply loop throu it and make "insert"s ine the database using jdbc... It seems hard coding your task a bit. There are many tools to convert your Excel in to MySQL.so try them
http://www.softaward.c om/92 17.html
http://www.websited ataba ses.com/excel-mysql.html
Tr y these so many Open source tools also available
Answered by
Romi
, an ibibo Master,
at
8:48 PM on July 20, 2008