Re: [GENERAL] Import data from a file

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: [GENERAL] Import data from a file
Дата
Msg-id Pine.GSO.4.02A.9910251511520.7688-100000@Hjort.DoCS.UU.SE
обсуждение исходный текст
Ответ на Import data from a file  (datab@main.kenken.ro)
Список pgsql-general
On Mon, 25 Oct 1999 datab@main.kenken.ro wrote:

> How can I import data from a file into existing table?

Contrary to what some other people have said (and will say) you perhaps
cannot use the copy command, since it can only read in files on the same
file system as the database server. There is the psql \copy command which
is a wrapper around the backend's copy but will act on the client's file
system.

In general your existing file has to be very carefully crafted to work
right with either copy incarnation. If it isn't I'd personally go for a
Perl script, but any other higher level language would do.

    -Peter

--
Peter Eisentraut                  Sernanders vaeg 10:115
peter_e@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden


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

Предыдущее
От: Johann Höchtl
Дата:
Сообщение: time difference
Следующее
От: soundar rajan
Дата:
Сообщение: retrieving last 3 rows