成人精品一区二区三区中文字幕-成人精品一区二区三区-成人精品一级毛片-成人精品亚洲-日本在线视频一区二区-日本在线视频免费

導航首頁 ? 技術教程 ? PHP:oci_fetch_row()的用法_Oracle函數
全站頭部文字 我要出現在這里
PHP:oci_fetch_row()的用法_Oracle函數 767 2023-12-12   

oci_fetch_row

(PHP 5, PECL OCI8 >= 1.1.0)

oci_fetch_row — Returns the next row from a query as a numeric array

說明

array oci_fetch_row ( resource $statement )

Returns a numerically indexed array containing the next result-set row of a query. Each array entry corresponds to a column of the row. This function is typically called in a loop until it returns FALSE, indicating no more rows exist.

Calling oci_fetch_row() is identical to calling oci_fetch_array() with OCI_NUM + OCI_RETURN_NULLS.

參數

statement

有效的 OCI8 報表標識符 由 oci_parse() 創建,被 oci_execute() 或 REF CURSOR statement 標識執行。

返回值

Returns a numerically indexed array. If there are no more rows in the statement then FALSE is returned.

范例

Example #1 oci_fetch_row() Example

<?php

$conn = oci_connect('hr', 'welcome', 'localhost/XE');
if (!$conn) {
    $e = oci_error();
    trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
}

$stid = oci_parse($conn, 'SELECT department_id, department_name FROM departments');
oci_execute($stid);

while (($row = oci_fetch_row($stid)) != false) {
    echo $row[0] . " " . $row[1] . "<br>n";
}

oci_free_statement($stid);
oci_close($conn);

?>

注釋

Note:

See oci_fetch_array() for more examples of fetching rows.

參見

oci_fetch() - Fetches the next row into result-buffer oci_fetch_all() - 獲取結果數據的所有行到一個數組 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


主站蜘蛛池模板: 大伟| 李美琪主演的电影| 一个馒头引起的血案| 丁尼| 沈月个人简介| 永夜星河主演| 掐脖子的视频| 机械师3| 特黄特黄a级毛片免费专区| 视频欧美| 山东卫视节目表| 罗中立的《父亲》详案| 牵着妈妈的手广场舞| 五年级字谜| 法尔| 安娜卡列琳娜| wenxi| 赵大勇| 非常外父| 真的爱你中文谐音歌词| 让雷诺阿| call me by your name电影| 出轨的女人电影| 工作细胞 2018| 昆虫记读书笔记摘抄| 章家瑞| 我的秘密歌词| 大团圆李静张娴| 巨乳欧美| 77316电影| 郑艳丽三级| 八仙过海 电影| 日本变态裸体挠痒痒视频| 同性gay| 电影事物的秘密| 盲辉| 春闺梦里人电影在线观看| 年轻的丈夫 电影| 心跳源计划演员表| 白色噪音| 成都影院大全|

!!!站長長期在線接!!!

網站、小程序:定制開發/二次開發/仿制開發等

各種疑難雜癥解決/定制接口/定制采集等

站長微信:lxwl520520

站長QQ:1737366103