Обсуждение: Input from files

Поиск
Список
Период
Сортировка

Input from files

От
Mark Jewiss
Дата:
Hello,

I often use psql -f <filename> to input data from files that come from
legacy systems/other people.

Is there a way to input these into pgsql without the file having any
insert commands into it?

I've been given a large csv file that has come straight out of MS Excel,
and don't really want to have to go all through the file entering the
insert commands on either side of the values. Although I could use vi's
global search and replace, but that is messy.

Basically I just want to input a raw csv file....

Regards,

Mark.
--
Mark Jewiss
Knowledge Matters Limited
http://www.knowledge.com