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
All of them return as 0.
What can I do to make the blanks return as Null rather than 0?

Options: ReplyQuote

Written By
I want Null not 0
April 17, 2022 03:51PM
April 17, 2022 05:00PM
April 18, 2022 12:56AM
April 18, 2022 12:12PM
April 18, 2022 03:32PM
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.