pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
select between two databases
2+ messages / 2 participants
[nested] [flat]

* select between two databases
@ 2003-05-27 07:38  a.hitter@hmd-software.com
  0 siblings, 1 reply; 2+ messages in thread

From: a.hitter@hmd-software.com @ 2003-05-27 07:38 UTC (permalink / raw)
  To: pgsql-odbc; inoue@postgresql.org

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

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: select between two databases
@ 2003-06-01 04:32  Bruce Momjian <pgman@candle.pha.pa.us>
  parent: a.hitter@hmd-software.com
  0 siblings, 0 replies; 2+ messages in thread

From: Bruce Momjian @ 2003-06-01 04:32 UTC (permalink / raw)
  To: a.hitter@hmd-software.com; +Cc: pgsql-odbc; inoue@postgresql.org


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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-06-01 04:32 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-05-27 07:38 select between two databases a.hitter@hmd-software.com
2003-06-01 04:32 ` Bruce Momjian <pgman@candle.pha.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox