The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Threaded View

Problem with READ INTO OUTFILE and NULL values

Hi guys,

I'm producing a file every couple of minutes that needs to be processed by a very old (1984) SunOS machine. The file has to be presented in a flat format where individual fields need to be padded out to a particular length. I've had a couple of problems with this which I've solved, but the big one at the moment is values that are NULL, I'm getting the whole field reduced to \N instead of being padded out.

Another problem is that when I force in a NULL value I'm getting the result padded out further than I should: