Re: load data from a file

From: Jerome Raupach <jraupach(at)intelcom(dot)fr>
To: Fernando Caamaño <fernando(at)interweb-research(dot)net>
Cc: "'PostgreSQL General'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: load data from a file
Date: 2000-09-15 09:15:16
Message-ID: 39C1E8A4.BC53185@intelcom.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

You can use:
COPY table_1 FROM '/usr/file.txt' USING DELIMITERS '/';

table_1 (f1 INT4, f2 VARCHAR(20));

file:
0/aaaa
1/bbbb

Fernando Caamaño wrote:
>
> Hi all, I'm quite new in postgres, and I can't find how can i do this.
> I have a txt file with all de data of one table, and I want to insert it
> into the database. in mysql is load data infile ....
> how is in postgres?
> thank you
> Fernando Caamaño
> Programador web
> Interweb Research
> www.interweb-research.net

In response to

Browse pgsql-general by date

  From Date Subject
Next Message chris markiewicz 2000-09-15 11:21:39 RE: RE: Error in servlet
Previous Message Fernando Caamaño 2000-09-15 08:46:38 load data from a file