Re: Select dump

Поиск
Список
Период
Сортировка
От Geoffrey
Тема Re: Select dump
Дата
Msg-id 42820FB3.7070408@3times25.net
обсуждение исходный текст
Ответ на Select dump  (SG Edwards <s0460205@sms.ed.ac.uk>)
Список pgsql-novice
SG Edwards wrote:
> Hi,
>
> Quick question for 10 points!
>
> Is there a way to write the output of a select query to a file (I'm on a linux
> platform)?
>
> For example:
>
> SELECT name, age, address from employee;
>
> gives the result that I want to write to a text file:

 From what interface?  You can do this from psql:

echo 'select foo from bar;' | psql database > select.out

--
Until later, Geoffrey

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

Предыдущее
От: "Van Ingen, Lane"
Дата:
Сообщение: First plpgsql Script
Следующее
От: Tom Lane
Дата:
Сообщение: Re: First plpgsql Script