/ Published in: Other
- \f ','
- \o /tmp/moocow.csv
- SELECT foo,bar FROM whatever;
- If a field has newlines, this will break. You can do something like this instead.....
- SELECT foo, bar, '"' || REPLACE(REPLACE(field_with_newilne, '\n', '\\n'), '"', '""') || '"' FROM whatever;
CommentsSubscribe to comments
You need to login to post a comment.