Re: Populating a database

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: papapep <papapep(at)gmx(dot)net>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Populating a database
Date: 2002-11-04 14:00:05
Message-ID: 20021104140005.GB5617@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Mon, Nov 04, 2002 at 14:20:49 +0100,
papapep <papapep(at)gmx(dot)net> wrote:
> How can I populate a database with data I've got in a spreadsheet
> without having to format it with all the terrible format with commas,
> sql orders and so on??
> Or, at least, which is the easiest way to do it?

Normally using \copy in psql will work fairly well with csv or tsv files.

If you need to process the data before loading it into tables, you might
consider using perl. It is fairly easy to massage dta and you can use
COPY statements to do the actual loads.

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2002-11-04 14:41:26 Re: owner of type 'mmm' apperars to be invalid
Previous Message papapep 2002-11-04 13:20:49 Populating a database