db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bryan Pendleton <bpendleton.de...@gmail.com>
Subject Re: Transfer data between tables that are located in different databases
Date Mon, 26 Apr 2010 14:10:46 GMT
>> As it is a lot of data that needs to be transferred between tables, the 
>> idea of using the system procedures to export the data from the source 
>> table, and then importing it in the target table appears to be good one. 
>> I will definitely give it a try, and will post the code here if I 
>> encounter any error.
> 
> How about in SQL:
> 
> INSERT INTO target SELECT * FROM source;

The tricky part is that the original poster wanted the source and target
tables to be in separate databases, which makes this solution impractical.

However, Derby 10.6's ij tool will contain a new feature DERBY-4550
https://issues.apache.org/jira/browse/DERBY-4550
which will enable uses such as this in the ij tool, I believe.

thanks,

bryan


Mime
View raw message