Import excel data into mysql database [Solved/Closed]

nischala - Mar 12, 2010 at 04:17 AM - Latest reply:  Er.mayank khandelwal
- Jan 5, 2011 at 03:41 AM
Hello,


This is Nischala .Can any one suggest me wheather we can import excel sheet data into mysql database using .net application(vb.net or asp.net).



thanks in advance
See more 

4 replies

Best answer
rizvisa1 4481 Posts Thursday January 28, 2010Registration dateContributorStatus January 6, 2016 Last seen - Mar 12, 2010 at 02:48 PM
1
Thank you
You can open a connection to excel and then read from the recordset would be one way.

Thank you, rizvisa1 1

Something to say? Add comment

CCM has helped 1704 users this month

How to do that..?? Pls explain briefly.. Thank you.
rizvisa1 4481 Posts Thursday January 28, 2010Registration dateContributorStatus January 6, 2016 Last seen - Apr 10, 2010 at 08:53 PM
Sorry I had misread the question then. That would have been true if data was to pulled into excel, To insert data into db, just read the value and create insert statements and execute
Er.mayank khandelwal - Jan 5, 2011 at 03:41 AM
In this below query you can import data in mysql database

LOAD DATA LOCAL INFILE 'C:\\wamp\\tmp\\php89.tmp' INTO TABLE 'collection' FIELDS TERMINATED BY ',' ENCLOSED BY '"' ESCAPED BY '\\' LINES TERMINATED BY '\r\n'# Affected rows: 2599