Re: COPY example for partial tables - Mailing list pgsql-docs

From Neil Conway
Subject Re: COPY example for partial tables
Date
Msg-id 1129176531.8718.70.camel@localhost.localdomain
Whole thread Raw
In response to Re: COPY example for partial tables  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: COPY example for partial tables
Re: COPY example for partial tables
List 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



pgsql-docs by date:

Previous
From: Tom Lane
Date:
Subject: Re: [SQL] Update timestamp on update
Next
From: Bruce Momjian
Date:
Subject: Re: COPY example for partial tables