Search Postgresql Archives

COPY table to file missing quotation marks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  I'd like to understand what I'm missing when I COPY a table to a .csv file
but the text is not quoted.

  Here's an example of a command:

copy chemistry to '/home/postgres/emapchem.csv' with (format CSV, header True, quote '"', delimiter '|');

and here're part of the header and following row of the output:

siteid|sampdate|analdate|ph|cond|turb|tss|doc|dic|p|se|ca|mg|na|k|nh4|so4|no3
1993SBOIA049|2004-06-28|2004-06-28|7.67|117|4.21|6.1|1.13|11.96|40|0.2|503.5|206.2

  I'm sure it's something simple in the syntax I keep getting wrong, but I
don't see it.

Rich



--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux