MySQL Forums
Forum List  »  Newbie

Re: Links between databases
Posted by: Felix Geerinckx
Date: April 15, 2005 02:22AM

msokal1 wrote:

> I always figured this wasn't done but I decided I
> should at least ask and make sure. If you have
> two databases, are they able to link to each other
> the way two tables in the same database can? If
> so, how is it done?

As long as they are on the same server, no problem. Say you are using db1 and want to include table bar from db2 in your query:

SELECT foo.col, db2.bar.another_col FROM foo.col, db2.bar.another_col WHERE ...

(table foo is in db1).

--
felix

Options: ReplyQuote


Subject
Written By
Posted
April 14, 2005 11:48AM
April 14, 2005 01:47PM
Re: Links between databases
April 15, 2005 02:22AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.