位置: 编程技术 - 正文

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函数

  • 个体经营所得税核定征收2023标准
  • 个税系统里的收入包括什么
  • 单位购牙膏牙刷卫生纸怎么做账
  • 主营业务收入增长率计算公式
  • 薪金性支出包括什么
  • 开具银行资信证明
  • 未投入使用的道路
  • 收益性支出应计入产品成本对吗
  • 三包范围内的维修费谁出
  • 广告费怎么入账
  • 融资租赁出租人和承租人的区别
  • 建筑预缴税款后如何进行账务处理?
  • 2014年税收征管体制改革
  • 小规模企业怎么报税
  • 定期存款利息税是多少
  • 销售开发后的产品
  • 员工看病报销要计税吗
  • 企业所得税申报表在哪里打印
  • 承兑贴息的会计分录
  • 分公司的款汇入总公司得出什么证明
  • 滴滴出行电子发票备注怎么写
  • 购材料有折让如何做会计分录?
  • 房地产销售佣金表格模板
  • 制造费用主要包括哪些内容
  • 苹果手机移动到新手机
  • win11打开图片
  • 公司支付的赔偿金要扣税吗
  • real system
  • 增值税一般纳税人资格登记表
  • smart控制技术
  • 免征的增值税如何处理
  • mac完全安装windows
  • 蓝牙11
  • mit?
  • js快速入门教程
  • three.js 入门
  • php公众号推送完整示例
  • free命令看到的内存
  • 计提坏账准备的前提条件
  • 企业账户对私人账户转账多久到账
  • 什么是劳务派遣制员工
  • 关于机动车的法律定义
  • mysql嵌套语句
  • 房产公司业务招待费扣除政策
  • 预付账款需要做预算凭证吗
  • 免税收入与不征收的区别
  • 工商营业执照年检网上怎么年检
  • sqlserver表与表之间怎么关联
  • 2023年会计继续教育报名入口
  • 利润分配怎么分配比例
  • 个税系统里的免税收入怎么填
  • 印花税缴纳时间点
  • 专项应付款如何记账
  • 短期借款财务处理
  • 小额贷款涉及的法律
  • 其他业务收入的二级科目
  • 月末忘记结转怎么办
  • 预收账款是否要交说
  • 工会经费缴纳会计分录
  • 企业利润的构成内容
  • windows任务管理器命令
  • 怎么用uefi装win7
  • windows怎么右键
  • win8的系统
  • centos6.9
  • cocos2dx 教程
  • Android游戏开发教程
  • a10 config backup for aXAPI
  • bat基本语法
  • 如何正确使用标准电池和检流计
  • cocos2dx运行原理
  • javascript的常用数据类型
  • mysql 导出指定表
  • css颜色值正确的表达形式
  • jquery弹出div窗口
  • Node.js中的事件循环是什么
  • shell脚本循环复制文件
  • angular.js
  • 辽宁省地方税务局公告2014年第10号
  • 广东电子发票开票软件?
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设