in reply to Import file into MySQL table
keep it simple.. save the excel sheet as a csv file, then have a look at LOAD DATA INFILE. As long as MySQL can read the file, an sql command such as this should do it:
mysql> LOAD DATA INFILE 'data.txt' INTO TABLE tbl_name -> FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' -> LINES TERMINATED BY '\n';
cheers,
J
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Import file into MySQL table
by b310 (Scribe) on Jun 05, 2003 at 11:48 UTC | |
Re: Re: Import file into MySQL table
by b310 (Scribe) on Jun 05, 2003 at 17:06 UTC |