public inbox for [email protected]
help / color / mirror / Atom feedFrom: PG Doc comments form <[email protected]>
To: [email protected]
Cc: [email protected]
Subject: COPY FROM needs better example
Date: Wed, 20 Nov 2019 17:55:09 +0000
Message-ID: <[email protected]> (raw)
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/11/sql-copy.html
Description:
The example shown for COPY FROM is very basic and doesn't show how to use
any of the options -- which have tricky syntax that seems to trip up a
number of people.
Some suggestions:
COPY my_table FROM my_table.csv WITH (FORMAT csv, ESCAPE '\', HEADER,
ENCODING win1251);
COPY tbl (id, color) FROM STDIN WITH (FORMAT text, ENCODING utf8, DELIMITER
'|', FREEZE);
1|Brown
2|Purple
3|Maroon
Thanks,
--Joe
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: COPY FROM needs better example
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox