pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nils Zonneveld <nils@mbit.nl>
To: pgsql-sql@postgresql.org
Subject: Re: query on two databases ..
Date: Wed, 30 May 2001 18:27:55 +0200
Message-ID: <3B151F78.D30560BE@mbit.nl> (raw)
References: <9f2765$1f9j$1@news.tht.net>



Muhammed Yazici wrote:
> 
> hi,
> i'am really new to postgresql and i try it with php ..
> 
> Now i have following question :
> 
> is it possible to make one query on two databases. I have a database calles
> db1 and one db2 and i want to get :
> 
> select * from ":db1:table1"  where ":db1:table1:col1" in (select "col1" from
> ":db2:table1" );
> 
> (this query will work in interbase dbs)
> 
> how is the right syntax in postgresql ??
> 
> can anybody help my .. i looked in diffent manuals but i couldnt find the
> syntax ..
> 
> thanks a lot for your help in forward ..
> 
> m. Yazici
> yazici@chss.net

While schema's have not (yet) been implemented, it's not possible to
refer to two database in one SQL statement in PostgreSQL.

Regards,

Nils



view thread (4+ messages)  latest in thread

Message-ID: <3B151F78.D30560BE@mbit.nl>
Permalink:  ../3B151F78.D30560BE@mbit.nl/
Also on:    postgresql.org/message-id/3B151F78.D30560BE@mbit.nl

 · 

reply

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: nils@mbit.nl
  Subject: Re: query on two databases ..
  In-Reply-To: <3B151F78.D30560BE@mbit.nl>

* 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