Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

retrieve data from different databases 1

Status
Not open for further replies.

varakal

IS-IT--Management
Mar 18, 2004
114
US
I need to join two tables from different databases.
$src->prepare($sql) would execute the sql statement, but my doubt is how to address the tables from different databases in the sql statement.
Thanks.
 
You can not join across databases in generic SQL, joins are for a single tablespace only.

Now, your specific RDMS may have some cross table join feature (oracle can do this in some cases) but generally this is not the case.
 
I am using MySQL and it is supporting join feature across different databases. I could able to do it in MySQL. So I need to know if I can do it in perl.
 
I do not beleive DB supports this cross database join feature since each DBI connects to a specific database.

Its not an SQL standard so DBI can not really standardize on it. I also see nothing regarding it in the DBD::mysql driver man page.


 
This is what I need to know.. anyway.. I started doing the join manually.. Thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top