update : 2015.11.03
php.shukuma.com검색:
|
oci_fetch_object(PHP 5, PECL OCI8 >= 1.1.0) oci_fetch_object — Returns the next row from a query as an object 설명
object oci_fetch_object
( resource
$statement
)
Returns an object containing the next result-set row of a query.
Each attribute of the object corresponds to a column of the row.
This function is typically called in a loop until it returns
oci8 드라이버에서 수행하는 자료형 매핑에 대한 상세는 드라이버가 지원하는 자료형을 참고하십시오. 인수
반환값
Returns an object. Each attribute of the object corresponds to a
column of the row. If there are no more rows in
the Any LOB columns are returned as LOB descriptors. DATE columns are returned as strings formatted to the current date format. The default format can be changed with Oracle environment variables such as NLS_LANG or by a previously executed ALTER SESSION SET NLS_DATE_FORMAT command. Oracle's default, non-case sensitive column names will have uppercase attribute names. Case-sensitive column names will have attribute names using the exact column case. Use var_dump() on the result object to verify the appropriate case for attribute access.
Attribute values will be 예제
Example #1 oci_fetch_object() example
<?php
Example #2 oci_fetch_object() with case sensitive column names
<?php
Example #3 oci_fetch_object() with LOBs
<?php 참고
|