Hi
I am inserting windows newline charachers into a field with the intention that when i "select into outfile" the field data will be written on several newlines.
It seems problem is that the default behaviour is to escape
the backslashes when writing the outfile so i end up with the literal charachers in the outfile.
example:
Field1
------
data\r\nmore data\r\nsome more data
------
mysql> select Field1 into outfile "test.txt" from Table;
returns:
data\\r\\nmore data\\r\\nsome more data
instead of:
data
more data
some more data
i have played with the "FIELDS ESCAPED BY '\\'" option with no luck.
Can this be done?
Or is there a better way?
Thanks
Windows xp
mysql 5.0
I am inserting windows newline charachers into a field with the intention that when i "select into outfile" the field data will be written on several newlines.
It seems problem is that the default behaviour is to escape
the backslashes when writing the outfile so i end up with the literal charachers in the outfile.
example:
Field1
------
data\r\nmore data\r\nsome more data
------
mysql> select Field1 into outfile "test.txt" from Table;
returns:
data\\r\\nmore data\\r\\nsome more data
instead of:
data
more data
some more data
i have played with the "FIELDS ESCAPED BY '\\'" option with no luck.
Can this be done?
Or is there a better way?
Thanks
Windows xp
mysql 5.0