Is there a work-around that allows missing data to equal NULL for LOAD DATA INFILE in MySQL?

Posted by richardh on Stack Overflow See other posts from Stack Overflow or by richardh
Published on 2011-06-21T20:09:18Z Indexed on 2011/06/22 0:22 UTC
Read the original article Hit count: 207

Filed under:
|

I have a lot of large csv files with NULL values stored as ,, (i.e., no entry). After a lot of searching I found that this is a known "bug", although it may be a feature for some users. Is there a way that I can fix this on the fly without pre-processing? These data are all numeric, so a zero value is very different from NULL.

Or if I have to do pre-processing, is there one that is most promising for dealing with tens of csv files of 100mb to 1gb? Thanks!

© Stack Overflow or respective owner

Related posts about mysql

Related posts about load-data-infile