I am using select like this and it is fetching record successfully:
$table = new Bugs();
$select = $table->select();
$select->where('bug_status = ?', 'NEW');
$rows = $table->fetchAll($select);
But Now I want to update same record. For example in simple MySQL.
UPDATE TableName Set id='2' WHERE id='1';
How to execute above query in Zend ?
Thanks
For more than one where statement use the following.
Since you're already fetching the row you want to change, it seems simplest to just do:
just in case you wanna increment a column use Zend_Db_Expr eg: