From: | masyaf <kavtaradze(dot)s(at)gmail(dot)com> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | query option in COPY postgres |
Date: | 2015-11-06 20:22:36 |
Message-ID: | 1446841356122-5873015.post@n5.nabble.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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.
From | Date | Subject | |
---|---|---|---|
Next Message | David G. Johnston | 2015-11-06 22:02:33 | Re: query option in COPY postgres |
Previous Message | Isaac Marco Blancas | 2015-09-22 15:11:41 | Re: problem with regexp_matches in nested funcion |