two databases

Started by mourad_dhambriover 23 years ago2 messagesgeneral
Jump to latest
#1mourad_dhambri
mourad_dhambri@voila.fr

I am creating a query in a database db1 that retrieves data from another database db2.
How can I do this in PostGres?
In Oracle I can write "select * from db2.table1.field1".
thanks.

------------------------------------------

Faites un voeu et puis Voila ! www.voila.fr

#2Shridhar Daithankar
shridhar_daithankar@persistent.co.in
In reply to: mourad_dhambri (#1)
Re: two databases

On 26 Sep 2002 at 12:19, mourad_dhambri wrote:

I am creating a query in a database db1 that retrieves data from another database db2.
How can I do this in PostGres?
In Oracle I can write "select * from db2.table1.field1".

You can use dblink function in contrib that allows you to create database links
just like oracle..(OK may not be comparable but still..)

HTH

Bye
Shridhar

--
"How should I know if it works? That's what beta testers are for. I onlycoded
it."(Attributed to Linus Torvalds, somewhere in a posting)