欢迎光临第一亲子网

用PHP4访问Oracle815(2)

2013-9-2 | 来源:第一亲子网 | 点击:

导读: r);牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋/* 运行游标,也即运行这个查询*/ echo "n"; echo "$querynn"; $numcols = 0; while(ora_fetch($cursor)) {牋牋牋牋牋牋牋牋牋牋牋牋/* 将 $cursor中存着查询结果 echo */牋 $numcols = ora_numcols($cursor); for ($colu...

r);牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋/* 运行游标,也即运行这个查询*/

echo "
n"; 
echo "$querynn";
$numcols = 0;
while(ora_fetch($cursor)) {牋牋牋牋牋牋牋牋牋牋牋牋/* 将 $cursor中存着查询结果 echo */牋
$numcols = ora_numcols($cursor);
for ($column=0; $column < $numcols; $column++) {
$data = trim(ora_getcolumn($cursor, $column));
if($data == "") $data = "NULL";
echo "$datat";
}
echo "n";
}
$numrows = ora_numrows($cursor);
echo "nROWS RETURNED: $numrowsn";
echo "
n";

ora_close($cursor);

?>

上一页 12

上一篇:用PHP4访问Oracle815

下一篇:如何在PHP中使用Oracle数据库(1)