From: Bruce Momjian Date: Thu, 13 Oct 2005 02:00:09 +0000 (+0000) Subject: Remove extra X-Git-Tag: REL8_1_0BETA4~81 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3d50e107ada773c7836ce494706b7557fac8be48;p=postgresql Remove extra --- diff --git a/doc/src/sgml/ref/copy.sgml b/doc/src/sgml/ref/copy.sgml index 34f1b496eb..5461924b36 100644 --- a/doc/src/sgml/ref/copy.sgml +++ b/doc/src/sgml/ref/copy.sgml @@ -1,5 +1,5 @@ @@ -708,6 +708,18 @@ COPY country FROM '/usr1/proj/bray/sql/country_data'; + + To copy into a file just the countries whose names start with 'A' + using a temporary table which is automatically deleted: + +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; + + + Here is a sample of data suitable for copying into a table from STDIN: