Re: Copy entire file as one field

Поиск
Список
Период
Сортировка
От Ron Johnson
Тема Re: Copy entire file as one field
Дата
Msg-id 1038450405.24355.7.camel@haggis
обсуждение исходный текст
Ответ на Copy entire file as one field  ("Warren Massengill" <warrenmassengill@hotmail.com>)
Список pgsql-novice
On Wed, 2002-11-27 at 18:40, Warren Massengill wrote:
> How can I copy several hundred small text files into a database, each file
> going into a field called 'message' and becomming one record (with or
> without other fields) using psql?

Don't know about psql, but you could use python or perl (heck, even C!)
to script it pretty easily.

--
+------------------------------------------------------------+
| Ron Johnson, Jr.     mailto:ron.l.johnson@cox.net          |
| Jefferson, LA  USA   http://members.cox.net/ron.l.johnson  |
|                                                            |
| "they love our milk and honey, but preach about another    |
|  way of living"                                            |
|    Merle Haggard, "The Fighting Side Of Me"                |
+------------------------------------------------------------+


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

Предыдущее
От: "Gallamine"
Дата:
Сообщение: DB dump problems
Следующее
От: Ron Johnson
Дата:
Сообщение: Re: DB dump problems