From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Jay <jayps@addr.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Database joins
Date: Mon, 9 Sep 2002 08:44:09 -0700 (PDT)
Message-ID: <20020909084148.S13345-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <005101c257df$0343be50$a800a8c0@blraddrcom>
On Mon, 9 Sep 2002, Jay wrote:
> Hi,
> I have created two databases, db1 and db2 in my POSTGRESQL database system.
> And both the databases contains few tables also.
> Could you please help me to write a query which should retrieve data from both the databases
> (Database joins and table joins)
You cannot currently directly via sql only do
cross database joins. You might want to see
if contrib/dblink will let you do what you want
(iirc it's gotten better in 7.3 with the
functions returning result set stuff).
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: sszabo@megazone23.bigpanda.com, jayps@addr.com
Subject: Re: Database joins
In-Reply-To: <20020909084148.S13345-100000@megazone23.bigpanda.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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