Default value for empty integer fields when importing CSV data in MySQL

后端 未结 3 1167
渐次进展
渐次进展 2021-02-09 09:35

I\'m importing a CSV into a MySQL table with LOAD DATA INFILE. One of the table\'s fields stores zip code data, which I\'ve defined in the table structure con

3条回答
  •  情话喂你
    2021-02-09 10:07

    In Csv I replaced all the "" with "\N" before I run the script, this creates a null field in db

提交回复
热议问题