0

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, ,

?

1 Answer 1

2

You can use coalesce(FieldName,'') to return empty string instead of Null

Sign up to request clarification or add additional context in comments.

3 Comments

What if field is not string?
@a.oberon instead of empty string you return the default value for that data type.
But default value for Integer can not be empty as needed =)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.