public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: kashani <kashani-list@badapple.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Database migration software
Date: Fri, 05 Jan 2007 14:57:00 -0800	[thread overview]
Message-ID: <459ED7BC.7070107@badapple.net> (raw)
In-Reply-To: <975001.59324.qm@web35614.mail.mud.yahoo.com>

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



      reply	other threads:[~2007-01-05 23:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-05 22:45 [gentoo-user] Database migration software Jerônimo Backes
2007-01-05 22:57 ` kashani [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=459ED7BC.7070107@badapple.net \
    --to=kashani-list@badapple.net \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox