From: Dave [Hawk-Systems] <dave@hawk-systems.com>
To: pgsql-general@postgresql.org
Subject: populate table with large csv file
Date: Thu, 25 Sep 2003 12:38:07 -0400
Message-ID: <DBEIKNMKGOBGNDHAAKGNEEFEFBAC.dave@hawk-systems.com> (raw)
have the table "numbercheck"
Attribute | Type | Modifier
-----------+------------+----------
svcnumber | integer | not null
svcqual | varchar(9) |
svcequip | char(1) |
svctroub | varchar(6) |
svcrate | varchar(4) |
svcclass | char(1) |
trailer | varchar(3) |
Index: numbercheck_pkey
also have a csv file
7057211380,Y,,,3,B
7057216800,Y,,,3,B
7057265038,Y,,,3,B
7057370261,Y,,,3,B
7057374613,Y,,,3,B
7057371832,Y,,,3,B
4166336554,Y,,,3,B
4166336863,Y,,,3,B
7057201148,Y,,,3,B
aside from parsing the csv file through a PHP interface, what isthe easiest way
to get that csv data importted into the postgres database. thoughts?
thanks
Dave
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: dave@hawk-systems.com, pgsql-general@postgresql.org
Subject: Re: populate table with large csv file
In-Reply-To: <DBEIKNMKGOBGNDHAAKGNEEFEFBAC.dave@hawk-systems.com>
References: <DBEIKNMKGOBGNDHAAKGNEEFEFBAC.dave@hawk-systems.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox