\copy...

From: "Ed" <ed(at)jetumele(dot)com>
To: "pgsql sql" <pgsql-sql(at)postgresql(dot)org>
Subject: \copy...
Date: 2000-06-15 18:32:13
Message-ID: 001001bfd6f8$06761a60$b48c29d1@citenet.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi,

I have a file that look like this :

firstname|lastname|email(at)domain(dot)com
firstname2|lastname2|email2(at)domain(dot)com

and a table foo like :

firstname varchar(30),
lastname varchar(30),
email varchar(50)

and I would like to do a :

copy tablename from '/home/ed/import.dat';

But then, everything goes in the first field... what does i'm doing
wrong?!?!

Frédéric Boucher
Ed(at)jetumele(dot)com
Programmation, Support technique
Jetumele Communications inc.

Responses

  • Re: \copy... at 2000-06-20 23:37:34 from Christopher Sawtell

Browse pgsql-sql by date

  From Date Subject
Next Message DalTech - Continuing Technical Education 2000-06-15 18:38:35 Does anyone know of a function equivilant to Oracle's decode function?
Previous Message John McKown 2000-06-15 18:17:50 Re: Simple search question