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

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

pg_field_table

(PHP 5 >= 5.2.0)

pg_field_table — Returns the name or oid of the tables field

說明

mixed pg_field_table ( resource $result , int $field_number [, bool $oid_only = false ] )

pg_field_table() returns the name of the table that field belongs to, or the table's oid if oid_only is TRUE.

參數

result

PostgreSQL query result resource, returned by pg_query(), pg_query_params() or pg_execute() (among others).

field_number

Field number, starting from 0.

oid_only

By default the tables name that field belongs to is returned but if oid_only is set to TRUE, then the oid will instead be returned.

返回值

On success either the fields table name or oid. Or, FALSE on failure.

范例

Example #1 Getting table information about a field

<?php
$dbconn = pg_connect("dbname=publisher") or die("Could not connect");

$res = pg_query($dbconn, "SELECT bar FROM foo");

echo pg_field_table($res, 0);
echo pg_field_table($res, 0, true);

$res = pg_query($dbconn, "SELECT version()");
var_dump(pg_field_table($res, 0));
?>

以上例程的輸出類似于:

foo
14379580
bool(false)

注釋

Note:

Returning the oid is much faster than returning the table name because fetching the table name requires a query to the database system table.

參見

pg_field_name() - 返回字段的名字 pg_field_type() - 返回相應字段的類型名稱


主站蜘蛛池模板: 子宫在肚子的哪个位置| 九州电影网| 燕郊在线| 骚扰电话怎么弄,不停的给对方打 儿子结婚请帖邀请函电子版 | 抖抖2| 大尺度激情吻戏| 乱世危情电视剧演员表| 女人 电影| 安息2| 闲章内容大全图片| 釜山国际电影节| 香港卫视中文台| 我的神我要赞美你| 借种电影| 金珊| 陈若仪个人简历资料| 家书1000字| 骨妹| 显示驱动| 凌晨晚餐| 电影《追求》| 红岩电影| av电影在线| 隐藏的秘密电影免费观看全集| 恶搞之家有几季| 手纹线| 小野惠令奈| 八年级英语阅读理解专项训练| 男女瑟瑟视频| 破地狱粤语在线| 鬼吹灯黄皮子坟| 吻戏韩剧| 张凯丽个人简历| 周星驰的全部电影免费观看| 军官与男孩| 陈烨个人资料简介| 天地姻缘七仙女演员表| 穆丹| 超级飞侠十七季| 意大利辣椒1984| stag|

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

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

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

站長微信:lxwl520520

站長QQ:1737366103