Php 在codeinter中使用多个select语句调用存储过程
在模型中,我尝试过这个 但它只返回第一个select语句值,但过程有多个select语句Php 在codeinter中使用多个select语句调用存储过程,php,mysql,codeigniter,stored-procedures,Php,Mysql,Codeigniter,Stored Procedures,在模型中,我尝试过这个 但它只返回第一个select语句值,但过程有多个select语句 $query=$this->db->query("CALL finishingformula($formulaid,$versionnumber,$status)"); $res = $query->result(); foreach($res as $row) { echo $row->formula_id;
$query=$this->db->query("CALL finishingformula($formulaid,$versionnumber,$status)");
$res = $query->result();
foreach($res as $row)
{
echo $row->formula_id;
}
存储过程有问题。它返回phpmyadmin中的所有查询结果