Re: Outputting to file

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Outputting to file
Дата
Msg-id 200206051423.51141.josh@agliodbs.com
обсуждение исходный текст
Ответ на Outputting to file  (Tom Ansley <tansley@law.du.edu>)
Список pgsql-novice
Tom,

> Can anybody point me in the right direction for writing rows of data to a
> file.  I know how to put stuff into a database from file but not how to get
> stuff out.

From psql:

\o file_name
SELECT whatever FROM some_table;
\o

See the documentatin on PSQL for more instructions.  Or type \? at the psql
prompt.

-Josh Berkus


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

Предыдущее
От: Tom Ansley
Дата:
Сообщение: Outputting to file
Следующее
От: "Patrick Hatcher"
Дата:
Сообщение: COPY from with PERL missing chunk of data