The IFNULL works a treat. I couldnt get FIELDS ESCAPED BY '\' to work, the script kept failing.
One thing, on the IFNULL, it works fine if you have just the column name, but if you changing the format, in a date for example:
DATE_FORMAT(DOB, '%d/%m/%Y') AS DOB
I tried:
IFNULL(DATE_FORMAT(DOB, '%d/%m/%Y') AS DOB,'')
but this doesnt work, anyone any suggestions on using IFNULL when using formatting options.
Thanks for the suggestions.
Cheers.