现在Oracle有下存储过程
begin
     -- Call the procedure  pac_t_stock_affiche_title.pro_t_stock_affiche_title(stockcode1 => :stockcode1, rs => :rs);
end;这里stockcode1是输入的股票代码,rs是返回的信息, 请问各位大大,我在PDO中如何使用呢?
按照手册中的使用方法,我写的代码,但是没有结果
CODE:[Copy to clipboard]<?php
<?php
$sql1 = "pac_t_stock_affiche_title.pro_stock_info_title(:stockcode1,:rs)";$stmt = $dbh->prepare($sql1);
$stockcode1 = "000001";
$stmt->bindParam(":stockcode1", $stockcode1, PDO::PARAM_STR, 100);
$stmt->bindParam(":rs", $rs,PDO::PARAM_INPUT_OUTPUT, 100);
$stmt->execute();
$ret = $stmt->fetchAll();
print_r($ret);
?>