oci_result
(PHP 5, PHP 7, PHP 8, PECL OCI8 >= 1.1.0)
oci_result — 返回所取得行中欄位的值
說明
   oci_result() 返回由 oci_fetch()
   所取得的當前行中 field
   欄位的數據。oci_result()
   對所有型別都返回字串只除了抽像型別(ROWID,LOB 和
   FILE)。oci_result() 在出錯時返回 false。
  
   可以使用列序號(從 1 開始)或列名(大寫)作為
   col 的參數。
  
注意:
在 PHP 5.0.0 之前的版本必須使用 ociresult() 替代本函式。該函式名仍然可用,為向下相容作為 oci_result() 的別名。不過其已被廢棄,不推薦使用。
要獲取 OCI8 擴充套件進行數據型別對映的細節,請參見驅動所支援的數據型別。
參見 oci_fetch_array(),oci_fetch_assoc(),oci_fetch_object(),oci_fetch_row() 和 oci_fetch_all()。
參數
- 
statement
- 
      
- 
field
- 
      Can be either use the column number (1-based) or the column name (in uppercase). 
返回值
   Returns everything as strings except for abstract types (ROWIDs, LOBs and
   FILEs). Returns false on error.
  
註釋
注意:
In PHP versions before 5.0.0 you must use ociresult() instead. This name still can be used, it was left as alias of oci_result() for downwards compatability. This, however, is deprecated and not recommended.
參見
- oci_fetch_array() - Returns the next row from a query as an associative or numeric array
- oci_fetch_assoc() - Returns the next row from a query as an associative array
- oci_fetch_object() - Returns the next row from a query as an object
- oci_fetch_row() - Returns the next row from a query as a numeric array
- oci_fetch_all() - 獲取結果數據的所有行到一個陣列