MySQL Forums
Forum List  »  French

Re: Comment importer des NULL dans mysql ?
Posted by: Benoît Bossard
Date: September 15, 2010 03:16AM

J'ai finalement trouvé une solution en mettant \N (2 caractères au lieu de 4 pour NULL)

mysqlimport --lines-terminated-by="\r\n" --fields-terminated-by="," --delete -L -ulogin -ppassword -v -hserveur base nomtable.csv

avec un fichier csv de la forme :

1,\N,416416
452452,4456,\N

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Comment importer des NULL dans mysql ?
2103
September 15, 2010 03:16AM


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.