I am trying to import a CSV file into phpmyadmin where several fields are purposefully left blank. I need this field to register as null values, and not just as an empty string.
I know that in the properties of the field you can choose to allow "null" or "not null" for each field, but when importing it still does not change the cell to zero. After import, I can manually go to the zero field for each field on each record, but this is unrealistic, given the amount of data I work with.
Is there any way to get phpmyadmin to set these empty cells to zero when importing?
.
CSV PhpMyAdmin NULL, , NULL . , :
"1", "2" ; NULL; NULL
"2" , "2" ; NULL; NULL
, CSV - Open Office Calc, , NULL, :
"1", "2" , "NULL" ; "NULL"
"2" , "2" , "NULL" ; "NULL"
, [ "NULL" = NULL].
, () , :
[, =, NULL,]
, , NULL :
[,\n =, NULL\n]
, jmbertucci . .
"hello","world",,,,,,
, , [, =, NULL], jmbertucci , .
"hello","world",NULL,,NULL,,NULL
, 0
, , MySQL noob, , .
find/replace rigamarole jmbertucci , CSV, , . phpMyAdmin, "" , replace NULL with:, - NULL. "NULL", .
replace NULL with:
NULL
"NULL"
Source: https://habr.com/ru/post/1785075/More articles:Почему ты не можешь сразу заглушить! макет объектов? - mockingHow to convert a complex C ++ Xcode project into a Cocoa application? - c ++How to generate a list of sets of inequalities in mathematics - wolfram-mathematicaDynamically have ContextMenu for each ListViewItem in a ListView? - wpfHow to create a visible Swing component? - javaWPF: TreeView Item Root uses a different template, and then child nodes - templatesImport CSV file with null values in phpmyadmin - sqlHow to move from ASPX to the razor view engine in ASP.NET MVC 3? - asp.net-mvcHow to get the character encoding supported by a font programmatically? - c #Как заставить ListView правильно отображаться после нажатия на кнопку onClickListener? - androidAll Articles