Import excel data into mysql database [Solved/Closed]

- - 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 

1 reply

Best answer
Posts
4475
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
January 6, 2016
914
1
Thank you
You can open a connection to excel and then read from the recordset would be one way.

Say "Thank you" 1

A few words of thanks would be greatly appreciated. Add comment

CCM 4561 users have said thank you to us this month

How to do that..?? Pls explain briefly.. Thank you.
rizvisa1
Posts
4475
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
January 6, 2016
914 -
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
-
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