mysqldump store null as blank

无人久伴 提交于 2019-12-14 02:33:40

问题


I use mysqldump to create a dump of my data table. The only problem is, that mysql stores a null value as /N and if I want to import the created CSV file into HANA, /N is not known as null but as varchar.

Is there a way to skip the null values during dumping or can I just replace /N with a blank?


回答1:


As far as I know,there are no options for handling the output of NULLs. You could try to replace NULLs with empty in your table:

UPDATE `tablename` SET columnname= '' where columnname is null


来源:https://stackoverflow.com/questions/18182061/mysqldump-store-null-as-blank

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