Create a view in the app database if both databases is on the same host.
Also read about mysql federated tables in case each database is on different
host.
http://dev.mysql.com/doc/refman/5.0/en/federated-use.html

On Thu, Aug 12, 2010 at 11:08 PM, Roland Pish <[email protected]> wrote:

> Hi.
>
> I'm developing a project which needs to access two databases in a
> single sql query (or in a single Find call), so my question is if in
> cakephp is possible to perform a Find like:
>
> select * from `database1`.`table` where `database1`.`table`.`id` in
> (select id from `database2`.`table`)
>
> Thanks in advance!
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<cake-php%[email protected]>For
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>



-- 
Regards,
Zaky Katalan-Ezra
QA Administrator
www.IGeneriX.com
Sites.IGeneriX.com
054-7762312

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to