Re: flat file database to postgres
| От | Frank Finner |
|---|---|
| Тема | Re: flat file database to postgres |
| Дата | |
| Msg-id | 20040316143023.29ad9dbd.postgresql@finner.de обсуждение исходный текст |
| Ответ на | flat file database to postgres (noor@cs.man.ac.uk) |
| Ответы |
Re: flat file database to postgres
|
| Список | pgsql-sql |
On Tue, 16 Mar 2004 12:33:57 -0000 (GMT) noor@cs.man.ac.uk sat down, thought long and then wrote: > > Hi > > Does anybody know how to export data from a flatfile (using perl) database > to postgres? > > Thanks If it is some kind of CSV (text with separators) you could use DBD::CSV for reading and DBD::Pg for writing. Or you read the file with Perl´s standard functions, treat the data to be PostgreSQL-insert-query-compatible (regarding apostrophes for example) and then use DBD::Pg (that´s what I usually do). If you have some kind of DBase files, you can use DBD::XBase. Regards, Frank.
В списке pgsql-sql по дате отправления: