query option in COPY postgres
| От | masyaf |
|---|---|
| Тема | query option in COPY postgres |
| Дата | |
| Msg-id | 1446841356122-5873015.post@n5.nabble.com обсуждение исходный текст |
| Ответы |
Re: query option in COPY postgres
Re: query option in COPY postgres |
| Список | pgsql-sql |
According to COPY documentation , I can use query option when exporting data.
Can I use query VALUES when loading data into tables from txt file? If I
have 2 columns and I want to insert record manually in the first
column(SentenceID) and insert data in the second column(Sentence) from text
file. Is it something like:
copy foo1(Sentence) | (VALUES (2339)) from '/path/to/sentence.txt' with
delimiter '*';
How to use exactly options in COPY command, it has {} | [] symbols in
documentation.
--
View this message in context: http://postgresql.nabble.com/query-option-in-COPY-postgres-tp5873015.html
Sent from the PostgreSQL - sql mailing list archive at Nabble.com.
В списке pgsql-sql по дате отправления: