简体   繁体   中英

MySQL - how to export CSV with NULL values as empty?

Right now i use MySQLWorkbench to export a CSV file but if the field as a NULL values it's getting exported as:

value1, /N, value2, /N, /N

How can i make sure it's exported as: value1, , value2, ,

?

您可以使用coalesce(FieldName,'')返回空字符串而不是Null

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM