magento删除数据

1.删除一条数据:
    $delete = Mage::getSingleton("core/resource")->getConnection("core_write");
    $table = Mage::getSingleton(‘core/resource’)->getTableName('fulfillment_inventory_ticket' );
    $delete->delete($table,array(‘id=?’=>3));

posted @ 2016-12-25 23:40  思风雨  阅读(325)  评论(0编辑  收藏  举报