📜  magento 1.9 更新表 where 条件 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:15.885000             🧑  作者: Mango

代码示例1
$where = [];
$where[] = $write->quoteInto('request_type=?',$request_type);
$where[] = $write->quoteInto('shipping_id =?', $shipping_id);
$where[] = $write->quoteInto('status =?', 0);
$write->update('freeze_requests'
    ,['status'=>1
    ,'approved_by'=>$userId
    ,'approved_on'=>Mage::getModel('core/date')->gmtDate('Y-m-d H:i:s')]
    ,$where
);