如何将此原始查询更改为基于Zend的查询:
UPDATE my_table SET publish = 1, cat_id = 1 WHERE article_id = 6
UPDATE my_table SET publish = 1, cat_id = 4 WHERE article_id = 16
UPDATE my_table SET publish = 1, cat_id = 6 WHERE article_id = 35
UPDATE my_table SET publish = 1, cat_id = 8 WHERE article_id = 14
我尝试了这个但是没有工作:
$cat_ids = array(1,4,6,8);
$article_ids = array(6,16,35,14);
$table->update(array('publish' => 1, 'cat_id = ?' => $cat_ids), array('article_id = ?' => $article_ids));