MySQL Workbench Import NULL from CSV

那年仲夏 提交于 2020-05-23 08:25:06

问题


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 with and without ""

How the does one signify a cell is 'null' inside a CSV file I want to import into MySQL via Workbench?


回答1:


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.




回答2:


You can solve your problem by updating your workbench to the newest.

enter image description here



来源:https://stackoverflow.com/questions/51349719/mysql-workbench-import-null-from-csv

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!