Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 6AE17476264 for ; Fri, 17 Jan 2003 19:29:26 -0500 (EST) Received: from davinci.ethosmedia.com (unknown [209.10.40.251]) by postgresql.org (Postfix) with ESMTP id 8790C476763 for ; Fri, 17 Jan 2003 19:28:55 -0500 (EST) Received: from [66.219.92.2] (HELO chocolate-mousse) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.0.2) with ESMTP id 2317977; Fri, 17 Jan 2003 16:29:00 -0800 Content-Type: text/plain; charset="windows-1252" From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: "Wei Weng" , Subject: Re: Can I do this? Date: Fri, 17 Jan 2003 16:31:07 -0800 X-Mailer: KMail [version 1.4] References: <001601c2be83$59ebe420$5301a8c0@monet> In-Reply-To: <001601c2be83$59ebe420$5301a8c0@monet> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200301171631.07223.josh@agliodbs.com> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/283 X-Sequence-Number: 11148 Wei, > I want to select some data out of database A, and insert them into databa= se=20 B. Is it possible to do in one SQL query? >=20 No. Use a Perl script. --=20 -Josh Berkus Aglio Database Solutions San Francisco