Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 3987 invoked from network); 26 Apr 2010 14:18:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Apr 2010 14:18:01 -0000 Received: (qmail 58696 invoked by uid 500); 26 Apr 2010 14:11:20 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 58637 invoked by uid 500); 26 Apr 2010 14:11:19 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 58630 invoked by uid 99); 26 Apr 2010 14:11:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Apr 2010 14:11:19 +0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=AWL,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bpendleton.derby@gmail.com designates 74.125.82.44 as permitted sender) Received: from [74.125.82.44] (HELO mail-ww0-f44.google.com) (74.125.82.44) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Apr 2010 14:11:11 +0000 Received: by wwe15 with SMTP id 15so215365wwe.31 for ; Mon, 26 Apr 2010 07:10:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=/Vqhb4IFX7aONkS3qmTtHi2Ynhv2nN81HHR3AixwpfE=; b=PAnwX4WsBmX1Jo0vXLeALF0TAWnk6dY0ltwJVb7tRrnDXQTMaiOkZ30iL6AP6+weXi utOjpyffwstU9stlfs6DWyFHE2M/tbnmauVBnNdZCd12IDlBPpcp6jLbWgfFdzSO4eRL ph2hsPZ+fJX30iCsqroyqTRdMxDTUscIwl7Gk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=oHoubSQvqT7HPBCb/7c3saMbKPkfg7A4TvgRI/1V3IB4/SxEaj7eSdUvYX4Aq01Ndk ttGETijGtSz/LJOS7oKgvRqdsD3ZX2sxMtPS9uKeBZlDmBlRmlM9h1Kb5XK+dCeZpriv O7rY9Zf1FDJR59E0yRylM/g2mWN16mipFnXBk= Received: by 10.216.156.133 with SMTP id m5mr5208007wek.115.1272291050277; Mon, 26 Apr 2010 07:10:50 -0700 (PDT) Received: from [192.168.0.103] (c-67-170-231-73.hsd1.ca.comcast.net [67.170.231.73]) by mx.google.com with ESMTPS id t27sm607464wbc.17.2010.04.26.07.10.48 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 26 Apr 2010 07:10:49 -0700 (PDT) Message-ID: <4BD59EE6.7010206@gmail.com> Date: Mon, 26 Apr 2010 07:10:46 -0700 From: Bryan Pendleton User-Agent: Thunderbird 2.0.0.24 (X11/20100411) MIME-Version: 1.0 To: Derby Discussion Subject: Re: Transfer data between tables that are located in different databases References: <100352.95620.qm@web59504.mail.ac4.yahoo.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit >> 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