How to import/export data from/to an ASCII file?

Поиск
Список
Период
Сортировка
От Raymond Chui
Тема How to import/export data from/to an ASCII file?
Дата
Msg-id 3A37E76B.5E580785@noaa.gov
обсуждение исходный текст
Список pgsql-hackers
For example

create table testTable (
id integer,
name char(20)
);

an ASCII file format with field separator "|" is

1|Hello|
2|Again|
......

There is a way to do this in Oracle, Sybase, Informix and MySQL.
But I want to know how to do this in PostgreSQL.

Please don't tell me use pg_dump, because it is not a correct answer for

my question!

Thank you!

Вложения

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

Предыдущее
От: bpalmer
Дата:
Сообщение: Why vacuum?
Следующее
От: oberpwd@anubis.network.com (Wade D. Oberpriller)
Дата:
Сообщение: Re: [GENERAL] No postgres on Solaris