MySQL Forums
Forum List  »  MySQL Workbench

I want Null not 0
Posted by: alan scott
Date: April 17, 2022 03:51PM

I am running the community version mySQL 8.0.28 on my Windows 11 PC.
I am using the local infile to load data to my tables from windows notepad. I am copying the data from Excel to Notepad.
In Excel I have blank entries which I want to be loaded as Null and when I copy to Notepad they appear as blank.
When I load Notepad to my table the blanks appear as 0.
I've tried substituting for the blank Null, null, NULL, "Null", "null" and
"NULL".
All of them return as 0.
What can I do to make the blanks return as Null rather than 0?
Thanks

Options: ReplyQuote


Subject
Views
Written By
Posted
I want Null not 0
592
April 17, 2022 03:51PM
293
April 17, 2022 05:00PM
317
April 18, 2022 12:56AM
325
April 18, 2022 12:12PM
313
April 18, 2022 03:32PM
279
April 18, 2022 04:46PM


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.