Re: Question about COPY command - Mailing list pgsql-general

From A. Kretschmer
Subject Re: Question about COPY command
Date
Msg-id 20090108135204.GF15370@a-kretschmer.de
Whole thread Raw
In response to Question about COPY command  ("Josh Harrison" <joshques@gmail.com>)
Responses Re: Question about COPY command  ("Josh Harrison" <joshques@gmail.com>)
List pgsql-general
In response to Josh Harrison :
> Hi,
> A basic question about the COPY command syntax....
> This is the syntax in the postgres manual.
>
> COPY tablename [ ( column [, ...] ) ]
>
>     FROM { 'filename' | STDIN }
> ......
> .....
>
> What is the difference between copying from 'filename' and copying from 'stdin' ???

Within psql, stdin is your keyboard. Otherwise, you can use COPY in a
UNIX-PIPE.


Andreas
--
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net

pgsql-general by date:

Previous
From: "Josh Harrison"
Date:
Subject: Question about COPY command
Next
From: Raymond O'Donnell
Date:
Subject: Re: Question about COPY command