$sql="select id,name from mytable.........";
  $stid = oci_parse($conn, $sql);
  if (!$stid) 
{
      $e = oci_error($conn);
      print htmlentities($e['message']);
      oci_close($conn);
      exit;
    }
  $r = oci_execute($stid, OCI_DEFAULT);
  if(!$r) 
{
      $e = oci_error($stid);
      echo htmlentities($e['message']);
      oci_close($conn);
      exit;
    }
  if($row = oci_fetch_array($stid, OCI_BOTH)) 
{
}
.....
$row[0]可以,$row['id']不可以