Jump to content

mssql_select_db multiple db's


knowram

Recommended Posts

Yes. You can even join them in a single query. Specify table names as dbname.tablename.

mysql_connect ($server, $user, $pwd);

$res = "SELECT a.col1, b.col2 
           FROM db1.table1 as a
           JOIN db2.table2 as b ON a.col2 = b.col2

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.