位置: 编程技术 - 正文

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

  • 所得税费用会计分录
  • 房地产企业的样板房费用计入哪个科目
  • 小规模纳税人应纳增值税额的计算
  • 累进税率的税种有哪些
  • 外币账户单位基本情况表
  • 应收票据贷方余额怎么办
  • 填制凭证的内容通常包括
  • 营改增之前材料含税吗
  • 申报抵扣了不做账怎么处理?
  • 餐饮刷卡机手续费多少
  • 企业电话费计入什么科目
  • 未在规定期限内发出追索通知
  • 滴滴发票报销是什么意思
  • 1697508933
  • 部队医院学校都没有税号吗
  • 现金流量表怎么做
  • 企业接收股东划入资产作为收入处理有所得税差异吗
  • 企业职工集资款的认定标准
  • 1697510614
  • 公司资金周转困难怎么办
  • 代理报关费0税率
  • 投标保证金利息规定
  • 预付款,尾款
  • 关于幼儿园会没课程的会刊
  • 停工损失会计准则
  • php substring
  • 税点款怎么算
  • php
  • 前端常见错误
  • yii2 resetful 授权验证详解
  • thinkphp excel
  • 发票的普票和专票什么区别
  • 本年利润年末必须为零吗
  • 外国人在我国境内被刑事拘留
  • java hash()
  • mongodb数据库中使用哪个数据库可以设置用户名和密码
  • 劳动法里病假工资怎么算
  • 企业会计准则是属于什么
  • 医院交什么保险
  • 签发转账支票需要的单据
  • 小型企业需要给员工买社保吗
  • 一般纳税人金税盘怎么清卡
  • 资产负债表其他综合收益
  • 普惠性幼儿园是什么意思
  • 现金日记账一般采用数量金额式
  • 出差的住宿费能抵扣吗
  • 一般纳税人购买原材料会计分录
  • 经营利润所得税费用
  • 主营业务成本的贷方是什么
  • 企业收到劳务费会计分录怎么做账
  • 项目估算主要包括
  • 申报表应纳税额和财务账金额不一致可以不改申报表吗
  • sql server利用触发器向表中输入时间
  • mac如何取消自动开机
  • linux中安装软件可使用哪些方式
  • freebsd login
  • win10共享提示
  • linux 获取网页
  • windows开机自启动程序
  • 2021年win10累积更新
  • win7还原按钮
  • 2016年Win10 RS1预览版11095已送交合作伙伴
  • win10账户登录闪退
  • win8系统盘清理
  • cocos2dx + android 如何添加百度插屏广告
  • JavaScript中的数据类型分为两大类
  • 地形图高程点坐标高程提取
  • 高通平台工具下载
  • div+css布局是什么
  • unity3d最新api
  • jquery倒计时代码
  • 如何分析源码
  • unity3d基于物理系统的2D平台跳跃游戏
  • 迅雷继续下载
  • Android应用程序可以直接在ios中安装运行吗
  • 减免所得税额怎样计算
  • 关于车辆购置税的申报与缴纳下列说法正确的有
  • 外贸企业出口退税流程及账务处理
  • 个人所得税缴纳怎么申报流程
  • 石油产品消费税征收
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设