public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Database migration software
@ 2007-01-05 22:45 Jerônimo Backes
  2007-01-05 22:57 ` kashani
  0 siblings, 1 reply; 2+ messages in thread
From: Jerônimo Backes @ 2007-01-05 22:45 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 483 bytes --]

Hi. I have a small database (100 tables) in firebird and want to migrate SOME data of it to a postgresql database. The latter database serves to a different purpose, so I just have to migrate specific columns of specific tables from the former database.

Is there any app that can do that job? If not, I think I should create one...

 __________________________________________________
Fale com seus amigos  de graça com o novo Yahoo! Messenger 
http://br.messenger.yahoo.com/ 

[-- Attachment #2: Type: text/html, Size: 498 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-user] Database migration software
  2007-01-05 22:45 [gentoo-user] Database migration software Jerônimo Backes
@ 2007-01-05 22:57 ` kashani
  0 siblings, 0 replies; 2+ messages in thread
From: kashani @ 2007-01-05 22:57 UTC (permalink / raw
  To: gentoo-user

Jerônimo Backes wrote:
> Hi. I have a small database (100 tables) in firebird and want to migrate 
> SOME data of it to a postgresql database. The latter database serves to 
> a different purpose, so I just have to migrate specific columns of 
> specific tables from the former database.
> 
> Is there any app that can do that job? If not, I think I should create 
> one...

The easiest way is to use your favorite language and output CSV files of 
the data you want to import. Then take the files and import them into 
the new database. In Mysql it would look like this and I'd expect 
postgres to have similar tools.

mysql -u root -p
LOAD DATA LOCAL INFILE '/firbird.csv'
INTO TABLE new_table
FIELDS TERMINATED BY ','
LINES TERMINATED BY '\n'
(column_name1, column_name2, column_name3);

kashani
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-01-05 23:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-05 22:45 [gentoo-user] Database migration software Jerônimo Backes
2007-01-05 22:57 ` kashani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox