From: | Jeff Self <jself(at)nngov(dot)com> |
---|---|
To: | Pam Wampler <Pam_Wampler(at)taylorwhite(dot)com> |
Cc: | "'pgsql-admin(at)postgresql(dot)org'" <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: Is there a utility to load data? |
Date: | 2002-02-13 20:02:16 |
Message-ID: | 1013630536.4343.6.camel@personnel_test |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
pg_restore or copy. look in the documentation.
I import data from flat files usually this way:
psql dbname < file
The file contains a line before the data:
COPY "tablename" FROM stdin;
data....
\.
If your delimiter is something other than tab you must specify the
delimiter type this way:
COPY "tablename" FROM stdin USING DELIMITERS '|'; # this is using | as
the delimiter.
On Wed, 2002-02-13 at 14:00, Pam Wampler wrote:
> Is there a postgresql utility to load data from a flat file? Similar to
> oracle sqlldr?
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
--
Jeff Self
Information Technology Analyst
Department of Personnel
City of Newport News
2400 Washington Ave.
Newport News, VA 23607
757-926-6930
From | Date | Subject | |
---|---|---|---|
Next Message | Mike Castle | 2002-02-13 20:33:51 | Re: restore whoes |
Previous Message | Chris Ruprecht | 2002-02-13 19:45:36 | Re: Is there a utility to load data? |