MySQL Workbench Import NULL from CSV

后端 未结 4 1449
不知归路
不知归路 2021-01-12 02:59

I can\'t for the life of me make MySQL Workbench import NULL for blank cells in a CSV.

I\'ve tried:

  • blank
  • NULL
  • \\N
  • Each wi
4条回答
  •  醉话见心
    2021-01-12 03:36

    Since MySQL Workbench version 8.0.16 (released on 04/25/2019) there has been an additional option for uploading .csv file -- "null and NULL word as SQL keyword". When selecting this option as YES, the NULL expression without quotes in .csv file (,NULL, rather than ,"NULL",) will work for this purpose.

提交回复
热议问题