有个oracle存储过程,只有一个返回参数,该参数为游标,请问用PDO组件怎么提取?
目前我写的代码如下:
$dbconn=new PDO($dsn,$user,$pwd);$strsql="begin pk001.pr001(:rc); end";$dbsear=$dbconn->prepare($strsql);$dbsear->bindParam(":rc", $rc,PDO::PARAM_LOB );$dbsear->execute();print_r($rc);
$dbsear->execute(); 后
do { $res[] = $dbsear->fetchAll(PDF::FETCH_ASSOC); }where($dbsear->nextRowset());