COPY doesnt work on views

From: Steve Heaven <steve(at)thornet(dot)co(dot)uk>
To: pgsql-general(at)postgresql(dot)org
Subject: COPY doesnt work on views
Date: 2000-12-12 16:36:10
Message-ID: 3.0.1.32.20001212163610.00fd014c@mail.thornet.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

The COPY .... TO filename doesnt seem to work.
Copying a table works OK. If Copy from a view isnt allowed how can I get
the results of a query into an external file?

Example:

=> \d top_hits
View = top_hits
Query = SELECT "company"."name", "co_hits"."hits" FROM "company",
"co_hits" WHERE ("co_hits"."number" = "company"."number");

=>copy top_hits to STDOUT;
Copy command returns...

Thanks

Steve

--
thorNET - Internet Consultancy, Services & Training
Phone: 01454 854413
Fax: 01454 854412
http://www.thornet.co.uk

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Steve Heaven 2000-12-12 16:40:38 Re: Sql query with partial matching
Previous Message Edward Q. Bridges 2000-12-12 16:10:09 RE: Re: Unanswered questions about Postgre