magento
  • stored-procedures
  • 2014-06-16 3 views 1 likes 
    1

    "myprocedure"라는 저장 프로 시저가 있습니다. Magento에서 어떻게 부를 수 있습니까?Magento에서 저장 프로 시저를 호출하는 방법은 무엇입니까?

    내가 시도 :

    $resource = Mage::getSingleton('core/resource'); 
    $writeConnection = $resource->getConnection('core_write'); 
    $query = 'CALL myprocedure()'; 
    $results = $writeConnection ->fetchAll($query); 
    var_dump($results); 
    

    이, 왜 나에게 PDO 오류를 준다?

    감사합니다.

    답변

    2

    $ writeConnection-> exec(); 도와 주실 수 있습니다.

    관련 문제