Re: [HACKERS] How to import/export data from/to an ASCII file?

From: "Joel Burton" <jburton(at)scw(dot)org>
To: Raymond Chui <raymond(dot)chui(at)noaa(dot)gov>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [HACKERS] How to import/export data from/to an ASCII file?
Date: 2000-12-14 20:14:48
Message-ID: 3A38E3E8.21120.D709E2@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

> For example
>
> create table testTable (
> id integer,
> name char(20)
> );
>
> an ASCII file format with field separator "|" is
>
> 1|Hello|
> 2|Again|
> ......
>
> There is a way to do this in Oracle, Sybase, Informix and MySQL.
> But I want to know how to do this in PostgreSQL.
>
> Please don't tell me use pg_dump, because it is not a correct answer
> for

Look at the documentation for COPY

\h COPY

Questions like this should be posted to pgsql-general, not pgsql-
hackers.
--
Joel Burton, Director of Information Systems -*- jburton(at)scw(dot)org
Support Center of Washington (www.scw.org)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jim Mercer 2000-12-14 20:39:02 adding a C function with optional arguments
Previous Message Joel Burton 2000-12-14 20:06:44 Re: RI and restoring dumps

Browse pgsql-hackers by date

  From Date Subject
Next Message Nathan Myers 2000-12-14 21:08:10 CRC-64
Previous Message Daniele Orlandi 2000-12-14 19:04:29 Re: Why vacuum?