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

導(dǎo)航首頁 ? 技術(shù)教程 ? PHP:pg_field_type_oid()的用法_PostgreSQL函數(shù)
全站頭部文字 我要出現(xiàn)在這里
PHP:pg_field_type_oid()的用法_PostgreSQL函數(shù) 753 2023-12-12   

pg_field_type_oid

(PHP 5 >= 5.1.0)

pg_field_type_oid — Returns the type ID (OID) for the corresponding field number

說明

int pg_field_type_oid ( resource $result , int $field_number )

pg_field_type_oid() returns an integer containing the OID of the base type of the given field_number in the given PostgreSQL result resource.

You can get more information about the field type by querying PostgreSQL's pg_type system table using the OID obtained with this function. The PostgreSQL format_type() function will convert a type OID into an SQL standard type name.

Note:

If the field uses a PostgreSQL domain (rather than a basic type), it is the OID of the domain's underlying type that is returned, rather than the OID of the domain itself.

參數(shù)

result

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

field_number

Field number, starting from 0.

返回值

The OID of the field's base type. FALSE is returned on error.

范例

Example #1 Getting information about fields

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

  // Assume 'title' is a varchar type
  $res = pg_query($dbconn, "select title from authors where author = 'Orwell'");

  echo "Title field type OID: ", pg_field_type_oid($res, 0);
?>

以上例程會輸出:

Title field type OID: 1043

參見

pg_field_type() - 返回相應(yīng)字段的類型名稱 pg_field_prtlen() - 返回打印出來的長度 pg_field_name() - 返回字段的名字


主站蜘蛛池模板: 赤胆情| 少妇的诱惑电影| 卢靖姗照片| 王尧个人简历| bbcworldservice music| 八仙过海 电影| 在线播放网站| 西野翔三级全部电影| 王渝萱林教授电影| 一句话让老公下面硬| 周星驰原名| 肚兜电影| 南来北往剧情分集介绍| 六级词汇电子版| 扑克牌悬浮魔术教程| 官网移动端充值| 包青天开封奇案| 长句变短句的例题| 美女jj| 第一次美国电影| 泰国av| 变成黑皮辣妹然后和朋友做| 中国的省份有哪些?| 记忆碎片剧情解析| 颂赞诗歌| 邓为个人资料简介介绍| 寄宿生韩国电影| 零下的风 完整版| 爆操在线观看| 张少| 春娇与志明电影| 内衣视频| 日日拍夜夜拍| 77316电影| 蒋祖曼| 蔡宜达的老婆吴佩柔照片| 混凝土结构施工质量验收规范gb50204-2015 | 红海行动2虎鲸行动| 杰奎琳·卡瓦霍| soldier's heart| 欧美gv网站|

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

網(wǎng)站、小程序:定制開發(fā)/二次開發(fā)/仿制開發(fā)等

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

站長微信:lxwl520520

站長QQ:1737366103