Index: doc/src/sgml/ref/copy.sgml
===================================================================
RCS file: /cvsroot/pgsql/doc/src/sgml/ref/copy.sgml,v
retrieving revision 1.67
diff -c -c -r1.67 copy.sgml
*** doc/src/sgml/ref/copy.sgml 5 Sep 2005 14:44:05 -0000 1.67
--- doc/src/sgml/ref/copy.sgml 12 Oct 2005 14:53:17 -0000
***************
*** 709,714 ****
--- 709,727 ----
+ 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: