Skip site navigation (1) Skip section navigation (2)

Re: COPY example for partial tables

From: Neil Conway <neilc(at)samurai(dot)com>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: David Fetter <david(at)fetter(dot)org>,PostgreSQL Docs <pgsql-docs(at)postgresql(dot)org>
Subject: Re: COPY example for partial tables
Date: 2005-10-13 04:08:51
Message-ID: 1129176531.8718.70.camel@localhost.localdomain (view raw or flat)
Thread:
Lists: pgsql-docs
On Wed, 2005-12-10 at 10:55 -0400, Bruce Momjian wrote:
>     <para>
> +    To copy into a file just the countries whose names start with 'A'
> +    using a temporary table which is automatically deleted:
> +   </para>
> + <programlisting>
> + BEGIN;
> + CREATE TEMP TABLE a_list_COUNTRIES AS
> +     SELECT * FROM country WHERE country_name LIKE 'A%';
> + COPY a_list_countries TO '/usr1/proj/bray/sql/a_list_countries.copy';
> + ROLLBACK;
> + </programlisting>
> +   </para>

The capitalization of "a_list_countries" is inconsistent -- both
references should all be in lowercase, IMO.

-Neil



In response to

Responses

pgsql-docs by date

Next:From: Andrew SullivanDate: 2005-10-13 14:22:53
Subject: Re: Update timestamp on update
Previous:From: Michael GlaesemannDate: 2005-10-13 03:07:47
Subject: Re: Update timestamp on update

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group