Re: export a select result in a file ?

Поиск
Список
Период
Сортировка
От A. Kretschmer
Тема Re: export a select result in a file ?
Дата
Msg-id 20051004150009.GA30679@webserv.wug-glas.de
обсуждение исходный текст
Ответ на export a select result in a file ?  ("ctobini" <ctemp2@free.fr>)
Список pgsql-general
am  04.10.2005, um  5:00:16 -0700 mailte ctobini folgendes:
> Hello,
>
> I don't find in the PostgreSQL doc how to export a select result in a
> text file.
>
> Thanks if you can help me.

You can use \o in psql to redirect the result to a file.

\o out.file


Regards, Andreas
--
Andreas Kretschmer    (Kontakt: siehe Header)
Heynitz:  035242/47212,      D1: 0160/7141639
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net
 ===    Schollglas Unternehmensgruppe    ===

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

Предыдущее
От: "Sebastian Iglesias"
Дата:
Сообщение: SQLService on Win XP
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Avoiding evaluating functions twice.