I was wondering how it may be possible to query 2 MySQL databases using
one query statement from PHP.
For instance: SELECT database1.table A.field1 UNION
database2.table B.field2.
My concern is, when connecting to MySQL (or sending a query), I only
specify 1 database connection resource ID. How does that play out when
connecting to 2 databases?
Thanks.
one query statement from PHP.
For instance: SELECT database1.table A.field1 UNION
database2.table B.field2.
My concern is, when connecting to MySQL (or sending a query), I only
specify 1 database connection resource ID. How does that play out when
connecting to 2 databases?
Thanks.
Comment