位置: 编程技术 - 正文

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

  • 进项税额转出借方科目
  • 个人出租住房需要缴纳哪些税
  • 期末结转的内容
  • 营业外收入怎么结转到本年利润
  • 工资及工资性支出
  • 如何使用发票对冲个人所得税
  • 贸易公司发票怎么平衡
  • 消费税征收环节下划的影响
  • 研发部门房租可以抵税吗
  • 标书费收据丢失怎么办
  • 购买座机计入哪个科目?
  • 不得扣除任何费用的是
  • 个人所得税申报错误如何更正申报
  • 关于增值税报税的通知
  • 印花税计税金额怎么算
  • 如果月初忘记抄税直接开票怎么办
  • 发票丢失联次
  • 增值税减免税申报明细表免税代码和名称
  • 研发的样机属于固定资产吗
  • 取得带息应收票据时,企业应于期末计算票据利息
  • 固定资产处理收入计入什么科目
  • 房地产开发公司注册资金要求
  • 财付通转出的钱能还回来吗
  • 个人非货币性资产投资个人所得税
  • 其他业务成本借贷方向表示
  • macos usb启动
  • 苹果电脑重新安装系统磁盘锁了怎么办
  • 上网慢怎么解决
  • 超市消费券买什么好
  • 升级w10系统
  • 公积金托收怎么变更
  • PHP:pg_free_result()的用法_PostgreSQL函数
  • 保险税前扣除比例是多少
  • win10开机强制进入安全模式重置
  • 莱茵地区在德国哪里
  • 【已解决】VUE3+webpack >5报错问题
  • 基于php的系统
  • 预收账款和应收账款的账务处理
  • css垂直导航栏
  • vue父子组件如何传递数据
  • wordpress all in one
  • wordpress怎么用
  • 根据不同资产涉及的税有哪些
  • dedecms采集怎么用
  • python怎么用
  • 帝国cms使用手册
  • 织梦怎么调用当前栏目下的文章
  • 非货币性资产交换是企业经常发生的
  • 汽车修理厂会计账务处理
  • 支出应计入管理费用,而且要根据其发生额
  • 制造费用账户在月末一般没有余额
  • 一般纳税人结转税额怎么做会计分录
  • 我国的税种及税率
  • 电子商业承兑汇票的承兑有以下几种方式
  • 现金余额出现负数的原因
  • 零退税率可以做免税吗
  • 稽查跨年进项税额转出要调整所得税吗
  • 物业公司预收的物业费怎么做账
  • 带抵扣进项分录
  • mysql安装不成功怎么办
  • mysql密码怎么找回
  • xp开机延时启动程序
  • linux中vi编辑器怎么使用
  • ubuntu如何读
  • linux中的文件
  • win8计算机配置在哪
  • windos8怎么样
  • win8和win10双系统安装教程
  • linux不小心删除目录怎么恢复
  • opengl多级采样消除锯齿有什么用
  • ext.formpanel
  • python 编程技巧
  • javascript函数如何定义及其作用
  • bootstrap和css的关系
  • Activity与Theme
  • 期初未缴税额是什么意思
  • 统一社会信用代码证
  • 青岛税务局局长是什么级别?
  • 公司欠税交不起股东责任
  • 税务局诉讼
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设