Mailinglisten-Archive |
Hallo Roland,
> Kann mir jemand einen Ansatz geben, wie ich am besten
CSV-Dateien in
> eine MySQL-Datenbank importiere?
Am einfachsten mit phpMyAdmin's
"Insert textfiles into table"
oder damit:
LOAD DATA LOCAL
INFILE
'/home/www/servers/www.servername.de/tmp/import.csv'
REPLACE
INTO TABLE tabellenname
FIELDS
TERMINATED BY ';'
OPTIONALLY ENCLOSED BY '"';
Genaueres unter:
http://www.koehntopp.de/php/faq-14.html#ss14.9
Gru?
Dietmar
php::bar PHP Wiki - Listenarchive