You don't even need to switch databases. Put a database prefix to the tables:

UPDATE other_db.mytable SET blah blah ...

It should work.

-M

On 10/9/06, David Brännlund <[EMAIL PROTECTED]> wrote:
Hi everyone,

I have a class extending Zend_Db_Table with a bunch of methods doing all
kinds of things. In one of the methods I need to update data in a
different database. That database exists on the same server, so normally
I would call mysql_select_db(dbname).

How would I do this in ZF using Zend_Db?


David Brännlund
Web & Database Development
COMSOL AB, Sweden


Reply via email to