Re: Populating a database

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Populating a database
Дата
Msg-id 20021104140005.GB5617@wolff.to
обсуждение исходный текст
Ответ на Populating a database  (papapep <papapep@gmx.net>)
Список pgsql-novice
On Mon, Nov 04, 2002 at 14:20:49 +0100,
  papapep <papapep@gmx.net> wrote:
> How can I populate a database with data I've got in a spreadsheet
> without having to format it with all the terrible format with commas,
> sql orders and so on??
> Or, at least, which is the easiest way to do it?

Normally using \copy in psql will work fairly well with csv or tsv files.

If you need to process the data before loading it into tables, you might
consider using perl. It is fairly easy to massage dta and you can use
COPY statements to do the actual loads.

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

Предыдущее
От: papapep
Дата:
Сообщение: Populating a database
Следующее
От: Tom Lane
Дата:
Сообщение: Re: owner of type 'mmm' apperars to be invalid