Null value for CSV upload into a MYQL date/time field with a default of NULL

jkauffman28 posted 5 years ago in Import/Export
I'm trying to replace blanks in a datetime field in an excel csvv that is inserted in a MySQL database. I've tried all values found at to no avail.

What am I missing?
ansgar posted 5 years ago
I think Heidi inserts NULLs for values which have a "NULL" string in it. But only for the "Client parses file contents" method.
nobswolf posted 3 years ago
Maybe an option for what to replace to NULL would be a nice idea like this:


[ ] create NULL from string ______

ansgar posted 3 years ago
Are we talking about the LOAD DATA command (server parsing) or the client parsing method in the import dialog?
nobswolf posted 3 years ago
From a user's perspective I'd say this should be transparent.

So this feature should be possible in both technics. How this is implemented on the SQL level is a different topic of course.
ansgar posted 3 years ago
How to insert NULL's from certain strings in the LOAD DATA command?
nobswolf posted 3 years ago
I will look into it... I think it is possible with some of the "escape"-parameters... It's been a while since I was into that low level console stuff :)
harishashim posted 1 week ago

Sorry to resurrect this topic. I just post a new topic saying that \N is not translated to NULL when exporting and importing CSV. Thanks!

Please login to leave a reply, or register at first.