| От | jose' soares |
|---|---|
| Тема | Re: [GENERAL] Creating Textfiles out of tables |
| Дата | |
| Msg-id | 36C97620.12FE717F@bo.nettuno.it обсуждение |
| Ответ на | Creating Textfiles out of tables (Martin Möderndorfer <mmoedern@linux.stuco.uni-klu.ac.at>) |
| Список | pgsql-sql |
Martin Möderndorfer ha scritto:
> Hi,
>
> i have some tables and want to extract results of a query on them into a
> text-file. it should be possible to insert ":","{" between the different
> tuples.
>
> Any ideas
>
> MArtin
> mmoedern@linux.stuco.uni-klu.ac.at
psql joe
joe=> \t
turned off output headings and row count
joe=> \f :
field separator changed to ':'
joe=> select * from btmm;
a : 13.2:FO
b : 1.32:FO
c :31.32:RO
if you type \o file_name
the result will be stored to a file named "file_name".
--
- Jose' -
And behold, I tell you these things that ye may learn wisdom; that ye may
learn that when ye are in the service of your fellow beings ye are only
in the service of your God. - Mosiah 2:17 -
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера