Re: Importing a comma-delimited text file

From: "James R(dot) R(dot) Service" <jservice(at)yahoo(dot)com>
To: pgsql-questions(at)postgresql(dot)org
Subject: Re: Importing a comma-delimited text file
Date: 2000-04-13 01:06:18
Message-ID: 38F51D89.120EC4DD@yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Conrad Lawes wrote:
>
> What is the command to import data into a table from comma-delimited
> text file?
> Unfortunately, the psql on-line help (\h) does not provide a clear
> explanation.

Try COPY.

The delimiter is "," in your case rather than the default \t.

For details see: http://alibaba.dei.uminho.pt/psql/postgres/sql-copy.htm

--
James (Jim) R.R. Service jservice at yahoo dot com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message omid omoomi 2000-04-13 01:11:10 Re: PHP-Postgres link
Previous Message Webb Sprague 2000-04-12 21:27:18 Create Database Error