Zend DB 2 Cross Database

For programming and general questions on Zend Framework
Post Reply
m_3rg
Posts: 2
Joined: Tue Dec 25, 2012 3:16 pm

Zend DB 2 Cross Database

Post by m_3rg » Tue Dec 25, 2012 3:19 pm

Is it possible that joining tables from different databases in Zend DB 2?

m_3rg
Posts: 2
Joined: Tue Dec 25, 2012 3:16 pm

Re: Zend DB 2 Cross Database

Post by m_3rg » Tue Dec 25, 2012 5:06 pm

I need something like this:

Code: Select all

$select = new Zend\Db\Sql\Select(new Zend\Db\Sql\TableIdentifier('table1', 'db1'));
$select->join('db2 . table2', 'db2 . table2 . id = db1 . table1 . id');

Post Reply