How can display ROWID in Php4+oracle8i

admin

Administrator
Staff member
i write the script:

$query = "select NAME,ROWID FROM XJRWK";
$conn = OCILogon("user","pass","eschool");
$rowid=OCINewDescriptor($conn,OCI_D_ROWID);
$stmt = OCIParse($conn,$query,OCI_B_ROWID);
OCIDefineByName($stmt,"ROWID",$rowid);
OCIExecute($stmt);
while(OCIFetchInto($stmt,$LOB,OCI_ASSOC+OCI_RETURN_LOBS)) {
print($rowid);
}
OCIFreeStatement($stmt);
OCILogoff($conn);

exec the script and only display "object"
how cai i dispaly ROWID?
 
Back
Top