Zend DB 2 Cross Database

For programming and general questions on Zend Framework

Zend DB 2 Cross Database

Postby m_3rg on 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

Postby m_3rg on 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');
m_3rg
 
Posts: 2
Joined: Tue Dec 25, 2012 3:16 pm


Return to Zend Framework

Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests