pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Re: Select to other database's table
2+ messages / 2 participants
[nested] [flat]

* Re: Select to other database's table
@ 2002-11-28 07:21  Oliver Elphick <olly@lfix.co.uk>
  parent: yudha <yudha@BonBon.net>
  0 siblings, 0 replies; 2+ messages in thread

From: Oliver Elphick @ 2002-11-28 07:21 UTC (permalink / raw)
  To: yudha <yudha@BonBon.net>; +Cc: pgsql-admin

On Thu, 2002-11-28 at 21:21, 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...???

You cannot read from another database.  In 7.3, you can have multiple
schemas in one database and the syntax for reading a file from another
schema is:

  SELECT * FROM schema.table...

I understand that 7.3's release is imminent.

-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight, UK                             http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
                 ========================================
     "The earth is the LORD'S, and the fullness thereof; the
      world, and they that dwell therein."       Psalms 24:1

Attachments:

  signature.asc (application/pgp-signature, 188B) download

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Select to other database's table
@ 2002-11-28 21:21  yudha <yudha@BonBon.net>
  0 siblings, 1 reply; 2+ messages in thread

From: yudha @ 2002-11-28 21:21 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


end of thread, other threads:[~2002-11-28 21:21 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 21:21 Select to other database's table yudha <yudha@BonBon.net>
2002-11-28 07:21 ` Oliver Elphick <olly@lfix.co.uk>

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