MySQL Forums
Forum List  »  PHP

Script need to insert data from 'new.csv' file to direct mysql database
Posted by: rudraraj das
Date: May 28, 2005 08:40AM

Hi friends,

I need your kind help. Actually I need the script which convert the whole data saved in .csv (coma separeted) extension to the mysql table.

the script looks like be:

$query="LOAD DATA LOCAL INFILE ******* REPLACE INTO TABLE `c1`
FIELDS TERMINATED BY ','
ESCAPED BY '\\'
LINES TERMINATED BY '\r\n'";


I lost the script marked as ****

Waiting for your reply.


Rudraraj

Options: ReplyQuote


Subject
Written By
Posted
Script need to insert data from 'new.csv' file to direct mysql database
May 28, 2005 08:40AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.