Re: load data from a file

Поиск
Список
Период
Сортировка
От Jerome Raupach
Тема Re: load data from a file
Дата
Msg-id 39C1E8A4.BC53185@intelcom.fr
обсуждение исходный текст
Ответ на RE: Error in servlet  (Andreas Tille <tillea@rki.de>)
Список pgsql-general
You can use:
COPY table_1 FROM '/usr/file.txt' USING DELIMITERS '/';

table_1 (f1 INT4, f2 VARCHAR(20));

file:
0/aaaa
1/bbbb

Fernando Caamaño wrote:
>
> Hi all, I'm quite new in postgres, and I can't find how can i do this.
> I have a txt file with all de data of one table, and I want to insert it
> into the database. in mysql is load data infile ....
> how is in postgres?
> thank you
> Fernando Caamaño
> Programador web
> Interweb Research
> www.interweb-research.net

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

Предыдущее
От: Fernando Caamaño
Дата:
Сообщение: load data from a file
Следующее
От: "chris markiewicz"
Дата:
Сообщение: RE: RE: Error in servlet