MySQL Forums
Forum List  »  German

Re: 2.Versuch: Import-Probleme mit LOAD DATA Infile durch NULL - Werte
Posted by: Wolfgang Moriske
Date: October 20, 2015 06:32AM

Etwas viel Schreibarbeit ... aber geht:

LOAD DATA LOCAL INFILE 'C:/import/felder.csv' INTO TABLE Import_felder
FIELDS TERMINATED BY ';'
LINES TERMINATED BY '\n'
IGNORE 1 LINES
(@feld1, @feld2, @feld3, @feld4, @feld5)
SET
feld1 = NULLIF(@feld1,''), feld2 = NULLIF(@feld2,''), feld3 = NULLIF(@feld3,''), feld4 = NULLIF(@feld4,'') usw. usw.

Habe ich hier gefunden: http://stackoverflow.com/questions/2675323/mysql-load-null-values-from-csv-data

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: 2.Versuch: Import-Probleme mit LOAD DATA Infile durch NULL - Werte
826
October 20, 2015 06:32AM


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.