Data Migration - Mailing list pgsql-jdbc

From Rob Kirkbride
Subject Data Migration
Date
Msg-id e0b3cb2b0709030152j325b68edsaf0701287ddc2004@mail.gmail.com
Whole thread Raw
Responses Re: Data Migration  ("Heikki Linnakangas" <heikki@enterprisedb.com>)
List pgsql-jdbc
Hi,

Is there a way in JDBC to move data from one database to another without having to hard-wire the table structure?

I was wondering if I can do a kind of

ResultSet rs = executeStatement("select * from table (from connection 1) where somecondition")
while (rs.next())
    take the resultset and then pass directly into a prepared statement for an "insert into table" (from connection 2)

I can't see any way other disecting the values from the first query and using getSQLType.

Any ideas?

Thanks

Rob


pgsql-jdbc by date:

Previous
From: Mayuresh Nirhali
Date:
Subject: Re: JNDI look up problem in sun java app server 8.1
Next
From: "Heikki Linnakangas"
Date:
Subject: Re: Data Migration