I know this may not really be a postgres question per se but I am using a postgres database so I guess that gives me an excuse to ask in this form .
I am using perl and postgres to make some reports for a client but they want me to print results to a file in csv format. I am having trouble finding out what the standard CSV format is. And I think Microsoft may have a different vision of what that is. I assumed that CSV was a comma separated line with each column inclosed in single quotes ' and all single quotes inside each single quote prefixed with a backslash. Am I correct? Does anyone know where I can get documentation on this?
example:
'col1','col2','col\'3'
'row2','row2','row2'
Thanks
I am using perl and postgres to make some reports for a client but they want me to print results to a file in csv format. I am having trouble finding out what the standard CSV format is. And I think Microsoft may have a different vision of what that is. I assumed that CSV was a comma separated line with each column inclosed in single quotes ' and all single quotes inside each single quote prefixed with a backslash. Am I correct? Does anyone know where I can get documentation on this?
example:
'col1','col2','col\'3'
'row2','row2','row2'
Thanks