Import excel data into mysql database

Solved/Closed
nischala - Mar 12, 2010 at 04:17 AM
 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
Related:

1 response

rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 766
Mar 12, 2010 at 02:48 PM
You can open a connection to excel and then read from the recordset would be one way.
1
How to do that..?? Pls explain briefly.. Thank you.
0
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 766
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
0
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
0