COPY doesnt work on views

Поиск
Список
Период
Сортировка
От Steve Heaven
Тема COPY doesnt work on views
Дата
Msg-id 3.0.1.32.20001212163610.00fd014c@mail.thornet.co.uk
обсуждение исходный текст
Ответ на Re: Reliability Stability of PgSQL & it's JDBC driver  (Peter T Mount <peter@retep.org.uk>)
Ответы Re: COPY doesnt work on views  (Anand Raman <araman@india-today.com>)
Список 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

В списке pgsql-general по дате отправления:

Предыдущее
От: Lamar Owen
Дата:
Сообщение: Re: postgresql-server-7.0.3-2.i386.rpm error
Следующее
От: Franck Martin
Дата:
Сообщение: RE: Problems with Mandrake RPM