From a.hitter@hmd-software.com Tue May 27 07:37:38 2003 X-Original-To: pgsql-odbc@postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by developer.postgresql.org (Postfix) with ESMTP id 6FFBF9258D7; Tue, 27 May 2003 03:37:38 -0400 (EDT) Received: from developer.postgresql.org ([64.117.224.193]) by localhost (developer.postgresql.org [64.117.224.193:10024]) (amavisd-new) with ESMTP id 64433-07; Tue, 27 May 2003 03:37:35 -0400 (EDT) Received: from webhmd.net (webhmd.net [213.198.31.252]) by developer.postgresql.org (Postfix) with ESMTP id 4649D9258C4; Tue, 27 May 2003 03:37:32 -0400 (EDT) Received: from 192.168.202.13 ([62.154.184.83]) by webhmd.net (8.12.9) id h4R7bUSU099518; Tue, 27 May 2003 01:37:31 -0600 (MDT) From: Subject: select between two databases To: , Date: 27 May 2003 07:38:58 UT X-Priority: 3 (Normal) Importance: normal X-Mailer: DvISE by Tobit Software, Germany (0207.414944454549504C524B) X-David-Sym: 0 X-David-Flags: 33554432 Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_000_00074AE8.3ED33230" X-Virus-Scanned: by amavisd-new X-Archive-Number: 200306/3 X-Sequence-Number: 2977 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_000_00074AE8.3ED33230 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7Bit Dear Support, I don't know how I can select between two databases on the same postgres-server? Does postgres support it? I have tested some ways but none of them was right: SELECT s.adresscode FROM db02.adressen a,sachbearbeiter s WHERE a.adresscode=s.adresscode Error message: Namespace "db02" does not exist SELECT '' FROM db02.adressen Error message: Namespace "db02" does not exist Thanks a lot in Advance Andreas Hitter hmd-software AG Munich - Germany To: pgsql-odbc@postgresql.org inoue@postgresql.org ------_=_NextPart_000_00074AE8.3ED33230 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Dear Support,
 
I don't know how I can select between two databases on the same postgres-server? Does postgres support it? I have tested some ways but none= of them was right:
 
SELECT s.adresscode FROM db02.adressen a,sachbearbeiter s WHERE a.adresscode=3Ds.adresscode
Error message: Namespace "db02" does not exist
 
SELECT '' FROM db02.adressen
Error message: Namespace "db02" does not exist
 
Thanks a lot in Advance
Andreas Hitter
hmd-software AG
Munich - Germany

=
To: pgsql-odbc@postgresql.org
    inoue@postgres= ql.org
------_=_NextPart_000_00074AE8.3ED33230-- From pgman@candle.pha.pa.us Sun Jun 1 04:37:41 2003 X-Original-To: pgsql-odbc@postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by developer.postgresql.org (Postfix) with ESMTP id 88786921A39; Sun, 1 Jun 2003 00:37:41 -0400 (EDT) Received: from developer.postgresql.org ([64.117.224.193]) by localhost (developer.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 15602-03; Sun, 1 Jun 2003 00:37:30 -0400 (EDT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by developer.postgresql.org (Postfix) with ESMTP id 7F0E5925B0D; Sun, 1 Jun 2003 00:32:52 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id h514Whq07343; Sun, 1 Jun 2003 00:32:43 -0400 (EDT) From: Bruce Momjian Message-Id: <200306010432.h514Whq07343@candle.pha.pa.us> Subject: Re: select between two databases In-Reply-To: To: a.hitter@hmd-software.com Date: Sun, 1 Jun 2003 00:32:43 -0400 (EDT) Cc: pgsql-odbc@postgresql.org, inoue@postgresql.org X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new X-Archive-Number: 200306/5 X-Sequence-Number: 2979 The best way is to use /contrib/dblink in the source tree. In 7.3, you can even return tables, not just single variables. --------------------------------------------------------------------------- a.hitter@hmd-software.com wrote: > Dear Support, > > I don't know how I can select between two databases on the same postgres-server? Does postgres support it? I have tested some ways but none of them was right: > > SELECT s.adresscode FROM db02.adressen a,sachbearbeiter s WHERE a.adresscode=s.adresscode > Error message: Namespace "db02" does not exist > > SELECT '' FROM db02.adressen > Error message: Namespace "db02" does not exist > > Thanks a lot in Advance > Andreas Hitter > hmd-software AG > Munich - Germany > > To: pgsql-odbc@postgresql.org > inoue@postgresql.org -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073