📅  最后修改于: 2022-03-11 14:54:20.200000             🧑  作者: Mango
$om = \Magento\Framework\App\ObjectManager::getInstance();
$connectionO = $om->create('Magento\Framework\App\ResourceConnection');
$connection= $connectionO->getConnection();
$sql = 'some query';
$results = $connection->fetchAll($sql);