bindParam(1, $name); $stmt->bindParam(2, $return_value, PDO::P"/> bindParam(1, $name); $stmt->bindParam(2, $return_value, PDO::P">
Home >Backend Development >PHP Tutorial > PHP_PDO 调用存储过程,返回参数有关问题
PHP_PDO 调用存储过程,返回参数问题
$stmt = $db->prepare("CALL pro_test(?,@?)");<br /> $stmt->bindParam(1, $name);<br /> $stmt->bindParam(2, $return_value, PDO::PARAM_STR, 4000);<br /> <br /> <br /> // 插入一行<br /> $name = '成都市';<br /> $stmt->execute ();<br /> <br /> print_r($return_value);