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
Subject
Views
Written By
Posted
I want Null not 0
689
April 17, 2022 03:51PM
331
April 17, 2022 05:00PM
367
April 18, 2022 12:56AM
378
April 18, 2022 12:12PM
386
April 18, 2022 03:32PM
332
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.