pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedSelect Multi Database;
2+ messages / 2 participants
[nested] [flat]
* Select Multi Database;
@ 2002-11-28 18:56 yudha <inas_husband@BonBon.net>
0 siblings, 1 reply; 2+ messages in thread
From: yudha @ 2002-11-28 18:56 UTC (permalink / raw)
To: pgsql-admin
Dear Milist;
Please give me some advices and help. How can i do
"select" the TABLE_1 on other database DB_2,
but currently i'm connecting to on DB_1.
ORACLE :
Current_DB_1 #> Select * From DB_2.TABLE_1;
MS-SQL :
Current_DB_1 #> Select * From DB_2..TABLE_2;
PostGre :
Current_DB_1 #> How do i write...???
GOD Bless You all and TIA.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Select Multi Database;
@ 2002-11-28 20:20 Bruce Momjian <pgman@candle.pha.pa.us>
parent: yudha <inas_husband@BonBon.net>
0 siblings, 0 replies; 2+ messages in thread
From: Bruce Momjian @ 2002-11-28 20:20 UTC (permalink / raw)
To: yudha <inas_husband@BonBon.net>; +Cc: pgsql-admin
You can't do cross-db queries directly. In 7.3, you can use schemas and
put them all in the same database, or use /contrib/dblink for cross-db
queries.
---------------------------------------------------------------------------
yudha wrote:
> Dear Milist;
> Please give me some advices and help. How can i do
> "select" the TABLE_1 on other database DB_2,
> but currently i'm connecting to on DB_1.
>
> ORACLE :
> Current_DB_1 #> Select * From DB_2.TABLE_1;
>
> MS-SQL :
> Current_DB_1 #> Select * From DB_2..TABLE_2;
>
> PostGre :
> Current_DB_1 #> How do i write...???
>
> GOD Bless You all and TIA.
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2002-11-28 20:20 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-11-28 18:56 Select Multi Database; yudha <inas_husband@BonBon.net>
2002-11-28 20:20 ` Bruce Momjian <pgman@candle.pha.pa.us>
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