From: Bruno Wolff III <bruno@wolff.to>
To: 2000 Informática <2000info@netsite.com.br>
Cc: pgsql Ludwig Lim <lud_nowhere_man@yahoo.com>
Cc: pgsql Laurette Cisneros <laurette@nextbus.com>
Cc: pgsql Christoph Haller <ch@rodos.fzk.de>
Cc: pgsql Achilleus Mantzios <achill@matrix.gatewaynet.com>
Cc: PG SQL Mailim <pgsql-sql@postgresql.org>
Subject: Re: SELECT with INNER data bases
Date: Thu, 10 Oct 2002 07:41:50 -0500
Message-ID: <20021010124150.GA23840@wolff.to> (raw)
In-Reply-To: <005101c27059$d970be00$0100a8c0@Info2000.com.br>
References: <005101c27059$d970be00$0100a8c0@Info2000.com.br>
On Thu, Oct 10, 2002 at 09:37:49 -0300,
2000 Informática <2000info@netsite.com.br> wrote:
> Hi,
>
> I have two data bases: db1 and db2.
> In MS SQL Server I can use
> 'SELECT T1.ID, T2.NAME FROM db1..table1 T1 INNER JOIN db2..table2 T2
> ON T1.ID = T2.ID ...'.
>
> How I do it in the PosgreSQL ?
Postgres does not allow for queries to reference more than one database.
In 7.3 (currently in beta), you may be able to use schemas to keep your
data in the same database and use queries referencing tables in different
schemas. Whether or not this will work for you depends on why you have
put the data into different databases.
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: bruno@wolff.to, 2000info@netsite.com.br, lud_nowhere_man@yahoo.com, laurette@nextbus.com, ch@rodos.fzk.de, achill@matrix.gatewaynet.com
Subject: Re: SELECT with INNER data bases
In-Reply-To: <20021010124150.GA23840@wolff.to>
* 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