pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedquery on two databases ..
4+ messages / 3 participants
[nested] [flat]
* query on two databases ..
@ 2001-05-30 07:23 Muhammed Yazici <yazici@chss.net>
0 siblings, 2 replies; 4+ messages in thread
From: Muhammed Yazici @ 2001-05-30 07:23 UTC (permalink / raw)
To: pgsql-sql
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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: query on two databases ..
@ 2001-05-30 16:27 Nils Zonneveld <nils@mbit.nl>
parent: Muhammed Yazici <yazici@chss.net>
1 sibling, 1 reply; 4+ messages in thread
From: Nils Zonneveld @ 2001-05-30 16:27 UTC (permalink / raw)
To: pgsql-sql
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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: query on two databases ..
@ 2001-06-01 07:41 Muhammed Yazici <yazici@chss.net>
parent: Nils Zonneveld <nils@mbit.nl>
0 siblings, 0 replies; 4+ messages in thread
From: Muhammed Yazici @ 2001-06-01 07:41 UTC (permalink / raw)
To: pgsql-sql
...sh*
But thanx ..
i'll try another solution ..
"Nils Zonneveld" <nils@mbit.nl> schrieb im Newsbeitrag
news:3B151F78.D30560BE@mbit.nl...
>
>
> 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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: query on two databases ..
@ 2001-06-05 21:30 Stephan Szabo <sszabo@megazone23.bigpanda.com>
parent: Muhammed Yazici <yazici@chss.net>
1 sibling, 0 replies; 4+ messages in thread
From: Stephan Szabo @ 2001-06-05 21:30 UTC (permalink / raw)
To: Muhammed Yazici <yazici@chss.net>; +Cc: pgsql-sql
There is currently no ability to span databases in a single
query.
On Wed, 30 May 2001, 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 ..
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2001-06-05 21:30 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-05-30 07:23 query on two databases .. Muhammed Yazici <yazici@chss.net>
2001-05-30 16:27 ` Nils Zonneveld <nils@mbit.nl>
2001-06-01 07:41 ` Muhammed Yazici <yazici@chss.net>
2001-06-05 21:30 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
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