```php
$db = Db::instance('development');
$db->update('mailList')->cols(array('status'=>1,'times'=>'times'+1))->where('id='.$id)->query();
Workerman中这样写报错
zend 中可以这样写:
$db = Zend_Db_Table::getDefaultAdapter();
$where = $db->qutoInto('id = ?',$id);
$db->update('mailList',array('status'=>1,'times'=>new Zend_Db_Expr('times+'.1)),$where)
```
还是只能取的时候多取一个字段加
$db->update('mailList')->cols(array('status'=>1,'times'=>$times+1))->where('id='.$id)->query();
```SQL
update mailList set status=1, times = times+1 where id =1;
```