zendframework 1 How do I call a bank procedure?
$proc = "CALL add_soma(:valor)";
$stmt = $this->_db->prepare($proc);
$stmt->bindParam(':valor', $valor, PDO::PARAM_INT);
$stmt->execute();
$data = $stmt->fetchAll();
$proc = "CALL add_soma(:valor)";
$stmt = $this->_db->prepare($proc);
$stmt->bindParam(':valor', $valor, PDO::PARAM_INT);
$stmt->execute();
$data = $stmt->fetchAll();