$sql = "SELECT ...";
$handle = Mage::getSingleton('core/resource')->getConnection('core_write');
$query = $handle->query($sql);
while ($row = $query->fetch()) {
//...
}
Magento中使用原生SQL
最新推荐文章于 2022-05-18 22:38:10 发布
$sql = "SELECT ...";
$handle = Mage::getSingleton('core/resource')->getConnection('core_write');
$query = $handle->query($sql);
while ($row = $query->fetch()) {
//...
}