Postgresql database access
Postgresql database access
От:
"Marcos Aurélio S. da Silva"<aurelio@cpatc.embrapa.br>
Дата:
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
Re: Postgresql database access
От:
"Oliver Elphick" <olly@lfix.co.uk>
Дата:
"Marcos Aurélio 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