Re: DBI connection to multiple database - Mailing list pgsql-general

From nolan@celery.tssi.com
Subject Re: DBI connection to multiple database
Date
Msg-id 20030521155925.14419.qmail@celery.tssi.com
Whole thread Raw
In response to DBI connection to multiple database  ("Johnson, Shaunn" <SJohnson6@bcbsm.com>)
List pgsql-general
> Is there a way to connect to one database, extract data,
> (say, some select query) and then export that data
> into another database without having to table the
> data into a file of some sort?

I have done this with both PERL and PHP programs.

In general, I think the PERL DBI is a bit easier to use as it will
handle character or text fields with quotes in them without any
programming, whereas in PHP it is necessary to use ereg_replace to
prepare those fields before doing an insert with them.

I think the PERL DBI also does a better job of handling null fields,
for example in dates.
--
Mike Nolan


pgsql-general by date:

Previous
From: Renê Salomão
Date:
Subject: Installing PlPerl
Next
From: Karsten Hilbert
Date:
Subject: Re: DBI connection to multiple database