位置: 编程技术 - 正文

PHP:pg_field_table()的用法_PostgreSQL函数

编辑:rootadmin
pg_field_table

推荐整理分享PHP:pg_field_table()的用法_PostgreSQL函数,希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!

(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 PHP:pg_field_table()的用法_PostgreSQL函数

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")ordie("Couldnotconnect");$res=pg_query($dbconn,"SELECTbarFROMfoo");echopg_field_table($res,0);echopg_field_table($res,0,true);$res=pg_query($dbconn,"SELECTversion()");var_dump(pg_field_table($res,0));?>

以上例程的输出类似于:

注释

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() - 返回相应字段的类型名称

PHP:pg_field_type_oid()的用法_PostgreSQL函数 pg_field_type_oid(PHP5=5.1.0)pg_field_type_oidReturnsthetypeID(OID)forthecorrespondingfieldnumber说明intpg_field_type_oid(resource$result,int$field_number)pg_field_type_oid()returnsanintegercontaini

PHP:pg_field_size()的用法_PostgreSQL函数 pg_field_size(PHP4=4.2.0,PHP5)pg_field_size返回指定字段占用内部存储空间的大小说明intpg_field_size(resource$result,int$field_number)pg_field_size()返回PostgreSQLresult中指定字

PHP:pg_field_prtlen()的用法_PostgreSQL函数 pg_field_prtlen(PHP4=4.2.0,PHP5)pg_field_prtlen返回打印出来的长度说明intpg_field_prtlen(resource$result,int$row_number,string$field_name)pg_field_prtlen()返回PostgreSQLresult中得到的

标签: PHP:pg_field_table()的用法_PostgreSQL函数

本文链接地址:https://www.jiuchutong.com/biancheng/281489.html 转载请保留说明!

上一篇:PHP:pg_field_type()的用法_PostgreSQL函数

下一篇:PHP:pg_field_type_oid()的用法_PostgreSQL函数

  • 建筑公司包工包料账务处理
  • 汇算清缴哪些需要调增调减
  • 公司投资股票亏损,要交企业所得税和个人所得税吗
  • 兼职劳务税率是多少2020
  • 财产保险合同印花税谁交
  • 外购的商誉如何做账
  • 高速公路通行费电子发票怎么打印
  • 开具的红字发票金税三期怎么报税?
  • 公司为员工租房费用的会计分录
  • 公司业务往来
  • 企业税审要钱吗
  • 空调安装企业能申请工程发票吗?
  • 增值税普通发票几个点
  • 税控盘月度统计表怎么打印
  • 广告公司营改增账务处理
  • 医疗服务收入占比分析
  • 递延所得税年初数和期末数
  • 销售费用办公费用
  • 餐饮研发费用确认条件
  • 租税联动政策
  • 汇算清缴报告和审计报告一样吗
  • 当月未抵扣进项税在进项税额明细表怎么填
  • 办公室装修计入什么科目里
  • 员工旅游计入什么费用
  • 销售差异计算公式
  • 总资产报酬率是怎么算出来的
  • 微软告诉你
  • php字符串定义的三种方式
  • 代发工资如何合理避税
  • 公司缴纳的契税怎么查询
  • 2020年前端面试
  • thinkphp ide
  • 房屋租金应缴纳多少
  • 与取得收入无关的成语
  • 总部资产减值会考吗
  • 补交上年度企业所得税报表怎么填写
  • yolov1训练过程
  • PHP基于什么语言
  • 应收票据确认坏账怎么处理
  • 基于深度学习的自动调制识别(含代码链接)
  • 数据结构的单链表
  • 职工医保报销后病情会泄露给单位吗
  • 历史成本和重置成本的区别
  • 资产负债表中应交税费为负数是什么意思
  • 代收通行费不征消费税
  • python中insert函数怎么用
  • python字符串方法总结
  • 二手车交易账务处理
  • Python支持向量能干什么
  • js中的对象种类有哪些
  • 土地使用税计入管理费用还是税金及附加
  • 使用pt-kill根据一定的规则来kill连接的方法
  • 关于税务机关扣押程序
  • 短期借款的账务处理例题
  • 增值税申报表是含税还是不含税
  • 捐赠人赞助属于什么会计科目
  • 化妆品消费税纳税标准
  • 如果停产怎么计算成本
  • 未开票收入账上税率按多少
  • 旅客运输服务客体是什么
  • 某酒店住宿费用定价分析
  • 月报怎么填
  • 国企背书是什么意思
  • 一个简单的微笑说说
  • linux动态链接库怎么调用
  • linux安装php7.3
  • image driver
  • linux单个文件夹文件数量
  • win7temp文件夹在哪
  • cocos2d-js教程
  • bat批处理脚本教程
  • javascript的常用数据类型
  • json和ui
  • python读取数据
  • kill某个进程
  • 最常见的左向右分流型心脏病是
  • 每天一篇日记
  • python版本怎么选
  • 黄金消费税税率是多少
  • 新能源车需要缴纳购置税吗?
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

    网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

    友情链接: 武汉网站建设