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
160
April 17, 2022 03:51PM
78
April 17, 2022 05:00PM
93
April 18, 2022 12:56AM
82
April 18, 2022 12:12PM
83
April 18, 2022 03:32PM
70
April 18, 2022 04:46PM


Sorry, only registered users may post in this forum.

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.