bindParam(1, $name);$stmt->bindParam(2, $return_">
时间:2021-07-01 10:21:17 帮助过:23人阅读
$stmt = $db->prepare("CALL pro_test(?,@?)");
$stmt->bindParam(1, $name);
$stmt->bindParam(2, $return_value, PDO::PARAM_STR, 4000);
// 插入一行
$name = '成都市';
$stmt->execute ();
print_r($return_value);
do {
$rows = $stmt->fetchAll(PDO::FETCH_NUM);
if ($rows) {
print_r($rows);
}
} while ($stmt->nextRowset());