pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Postgresql database access
2+ messages / 2 participants
[nested] [flat]

* Postgresql database access
@ 2001-01-05 18:32  Marcos Aurélio S. da Silva <aurelio@cpatc.embrapa.br>
  0 siblings, 1 reply; 2+ messages in thread

From: Marcos Aurélio S. da Silva @ 2001-01-05 18:32 UTC (permalink / raw)
  To: pgsql-sql

Dear Pg experts,

I have two databases and i want to refer to one table in a database "X"
when
i'm using database "Y". Something like this:

                            select * from X.table

This causes a parse error.  What's the correct sintax?

Best regards,

Marcos Aurelio
Brazil



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

* Re: Postgresql database access
@ 2001-01-05 20:40  Oliver Elphick <olly@lfix.co.uk>
  parent: Marcos Aurélio S. da Silva <aurelio@cpatc.embrapa.br>
  0 siblings, 0 replies; 2+ messages in thread

From: Oliver Elphick @ 2001-01-05 20:40 UTC (permalink / raw)
  To: Marcos Aurélio S. da Silva <aurelio@cpatc.embrapa.br>; +Cc: pgsql-sql

"Marcos =?iso-8859-1?Q?Aur=E9lio?= S. da Silva" wrote:
  >Dear Pg experts,
  >
  >I have two databases and i want to refer to one table in a database "X"
  >when
  >i'm using database "Y". Something like this:
  >
  >                            select * from X.table
  >
  >This causes a parse error.  What's the correct sintax?

It isn't possible to do this; you can only look at one database at a
time.

-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47  6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
                 ========================================
     "And thou shalt love the LORD thy God with all thine 
      heart, and with all thy soul, and with all thy might."
                 Deuteronomy 6:5 





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


end of thread, other threads:[~2001-01-05 20:40 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-01-05 18:32 Postgresql database access Marcos Aurélio S. da Silva <aurelio@cpatc.embrapa.br>
2001-01-05 20:40 ` 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