Skip site navigation (1) Skip section navigation (2)

Re: Select Multi Database;

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: yudha <inas_husband(at)BonBon(dot)net>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Select Multi Database;
Date: 2002-11-28 20:20:58
Message-ID: 200211282020.gASKKxX14290@candle.pha.pa.us (view raw or flat)
Thread:
Lists: 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(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

In response to

pgsql-admin by date

Next:From: yudhaDate: 2002-11-28 21:21:00
Subject: Select to other database's table
Previous:From: yudhaDate: 2002-11-28 18:56:06
Subject: Select Multi Database;

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group