Re: accessing two databases at the same time

From: Tariq Muhammad <tmuhamma(at)libertyrms(dot)com>
To: Peter Choe <choepete(at)mindspring(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: accessing two databases at the same time
Date: 2003-03-05 21:09:12
Message-ID: Pine.LNX.4.21.0303051608080.19659-100000@genesis.int.libertyrms.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Wed, 5 Mar 2003, Peter Choe wrote:

> if i have database 'A' with a table called 'a' and another database 'B'
> with a table called 'b', is there a way to do a select using both databases
> and their tables?
>
> select * from A.a, B.b;
>

You may wanna have a look at dblink under contrib.

_/_/ _/_/ _/_/ Tariq Muhammad
_/ _/ _/ _/ _/ _/ tariq(at)libertyrms(dot)info
_/ _/ _/_/_/ _/_/_/ v:416-646-3304 x 111
_/ _/ _/ _/ _/ _/ c:416-455-0272
_/_/_/ _/_/_/ _/ _/ p:416-381-1457
_________________________________________________
Liberty Registry Management Services Co.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message eric soroos 2003-03-05 21:14:42 MacRoman character set
Previous Message Tony Grant 2003-03-05 21:06:51 a date_part question