How to handle null field when exporting MYSQL tables to CSV

前端 未结 4 1083
死守一世寂寞
死守一世寂寞 2021-02-18 21:36

Right now when I export MYSQL tables to CSV files, I\'m getting \\N for NULL fields in the database which is expected. If there a way to change the \\N output to just an empty s

4条回答
  •  别那么骄傲
    2021-02-18 22:16

    I also had this problem, solved as follows:

    select ifnull(addr.reference, "") AS reference, data2 from ...

提交回复
热议问题