From: | Bruno Wolff III <bruno(at)wolff(dot)to> |
---|---|
To: | 2000 Informática <2000info(at)netsite(dot)com(dot)br> |
Cc: | pgsql Ludwig Lim <lud_nowhere_man(at)yahoo(dot)com>, pgsql Laurette Cisneros <laurette(at)nextbus(dot)com>, pgsql Christoph Haller <ch(at)rodos(dot)fzk(dot)de>, pgsql Achilleus Mantzios <achill(at)matrix(dot)gatewaynet(dot)com>, PG SQL Mailim <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: SELECT with INNER data bases |
Date: | 2002-10-10 12:41:50 |
Message-ID: | 20021010124150.GA23840@wolff.to |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
On Thu, Oct 10, 2002 at 09:37:49 -0300,
2000 Informática <2000info(at)netsite(dot)com(dot)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.
From | Date | Subject | |
---|---|---|---|
Next Message | Manfred Koizar | 2002-10-10 13:30:31 | contrib/fixchar (Was: Large databases, performance) |
Previous Message | 2000 Informática | 2002-10-10 12:37:49 | SELECT with INNER data bases |