| From: | nolan(at)celery(dot)tssi(dot)com |
|---|---|
| To: | SJohnson6(at)bcbsm(dot)com (Johnson, Shaunn) |
| Cc: | pgsql-general(at)postgresql(dot)org (\"pg-general E-mail\") |
| Subject: | Re: DBI connection to multiple database |
| Date: | 2003-05-21 15:59:25 |
| Message-ID: | 20030521155925.14419.qmail@celery.tssi.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Vivek Khera | 2003-05-21 16:02:01 | Re: PRIMARY KEYS |
| Previous Message | Darren Ferguson | 2003-05-21 15:53:57 | Re: TIMESTAMP SUBTRACTION |