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

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

oci_fetch_assoc

(PHP 5, PECL OCI8 >= 1.1.0)

oci_fetch_assoc — Returns the next row from a query as an associative array

說明

array oci_fetch_assoc ( resource $statement )

Returns an associative 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_assoc() is identical to calling oci_fetch_array() with OCI_ASSOC + OCI_RETURN_NULLS.

參數

statement

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

返回值

Returns an associative array. If there are no more rows in the statement then FALSE is returned.

范例

Example #1 oci_fetch_assoc() 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_assoc($stid)) != false) {
    echo $row['DEPARTMENT_ID'] . " " . $row['DEPARTMENT_NAME'] . "<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_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


主站蜘蛛池模板: cgtn news在线直播| livecams直播表演视频| 我被最想被拥抱的人威胁了| 神医喜来乐演员表| 美国伦理片禁忌| 赖丹丹| 达斯汀·克莱尔| barbapapa| 乱世危情电视剧演员表| 零下的风 完整版| 推拿电影| 暗夜幕后在线观看完整版| 超级风暴国语电影在线观看| 王牌空战| 电影终结者| 美女比基尼游泳视频大全高清| 九龙虫粪便的功效与吃法| 素人片| 电影频道直播| 电影《stag》完整版| 大森南朋| 秀人网小逗逗集免费观看| 寡妇高潮一级| 罗斯福游戏| 20岁电影免费完整观看| 鬼迷心窍 歌词| 远景山谷1981免费版| 栏目大全| 罗密欧与朱丽叶电影| 飞鸟里伊奈| 韩漫画未删减男同| 音乐僵尸演员表| 乐队的夏天 综艺| 张艺宣| 榜上佳婿电视剧全集免费观看高清下载| 林佑星| 变形记开头结尾优美段落| 拔萝卜电视剧视频高清完整版| 施华| 侠侣探案| va视频在线|

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

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

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

站長微信:lxwl520520

站長QQ:1737366103