From: | "Culberson, Philip" <philip(dot)culberson(at)dat(dot)com> |
---|---|
To: | "'Conrad Lawes'" <clawes(at)home(dot)com>, pgsql-questions(at)postgresql(dot)org |
Subject: | RE: Importing a comma-delimited text file |
Date: | 2000-04-11 14:51:25 |
Message-ID: | A95EFC3B707BD311986C00A0C9E95B6A9DE640@datmail03.dat.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
With your Postgres distribution should have come a number of PDF files.
These are a far better source of information than the \h of psql. They can
be found in the /doc directory of the distribution tree. For your question,
look in the user.pdf file.
Briefly, the command would look like:
COPY table_name FROM '/foo/bar/myfile.txt' USING DELIMITERS ',';
Phil Culberson
DAT Services
-----Original Message-----
From: Conrad Lawes [mailto:clawes(at)home(dot)com]
Sent: Tuesday, April 11, 2000 5:37 AM
To: pgsql-questions(at)postgresql(dot)org
Subject: [GENERAL] Importing a comma-delimited text file
What is the command to import data into a table from comma-delimited
text file?
Unfortunately, the psql on-line help (\h) does not provide a clear
explanation.
Thanks.
From | Date | Subject | |
---|---|---|---|
Next Message | Culberson, Philip | 2000-04-11 15:20:42 | RE: JDBC connection - DB Prep? |
Previous Message | Conrad Lawes | 2000-04-11 12:37:16 | Importing a comma-delimited text file |