位置: 编程技术 - 正文

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

  • 跨月的增值税专用发票怎么作废重开
  • 发票税率开错了怎么办
  • 劳保用品发放制度文件
  • 土地使用税返还是否征税
  • 转入公司对公账户怎么办
  • 购买土地契税和印花税什么时候交
  • 预付冲应付会计分录摘要
  • 研发费用在企业所得税中怎么扣除
  • 客户往来对账单
  • 建筑行业未收款先开发票如何做账?
  • 转让土地使用权一般计税方法
  • 公司贷款买车后影响公司收购吗
  • 印花税要报吗
  • 企业拆迁补偿款需要开发票吗
  • 销售房地产要交培训费是传销行为吗
  • 事业单位去年的岗位今年还会招吗
  • 垃圾清运属于什么大类
  • 生产型出口企业的概念
  • 怎么在安全模式下卸载更新
  • macbook怎么修改默认系统
  • 未开票收入申报后又要开票
  • PHP:xml_set_object()的用法_XML解析器函数
  • pqv2isvc.exe - pqv2isvc是什么进程 有什么作用
  • 银行对公账户收款码手续费多少
  • 最小的固态硬盘多大尺寸
  • 补提固定资产折旧和汇算清缴有关系吗
  • 购买方发票已认证丢失了如何处理
  • 汇算清缴怎么调减
  • vue中v-model
  • php xml转字符串
  • php plates
  • php反转
  • 内外参标定
  • spring的配置文件中的内容
  • vue3响应式对象数组
  • 待转销销项税额是什么
  • 增值税发票抵扣期限是多久
  • phpcms教程
  • 接手前往年的银行余额不平怎么办?
  • 出口退税未按期申报怎么办
  • 记账凭证错了
  • 织梦自适应模板怎么弄
  • 万元发票和千元发票
  • 税控盘抵减增值税
  • 汇算清缴思路
  • 怎样备份mysql数据库
  • 金税三期个税申报
  • 应付账款账面价值扣除商业折扣吗
  • 公司法人转账到公司账户
  • 一般什么是差旅费呢
  • 应收应付账款如何清理
  • mysql二进制安装教程
  • sql server 更改字段数据类型
  • linux操作系统查询命令
  • win8wifi受限
  • linux c命令
  • win7系统如何调节电脑屏幕亮度
  • win10系统下如何打开internet(ISS)信息服务
  • mac怎么卸载苹果系统
  • linux fdb表
  • win10怎么看下载的软件
  • Linux系统中矢量图ai格式怎么打开?
  • win10专业版装不上m1136驱动
  • win系统找回删除文件
  • win7正版提示
  • Extjs gridpanel 出现横向滚动条问题的解决方法
  • pythonreduce函数的作用
  • opengl基础知识噪声名词解释
  • css ie8
  • android设计模式的应用场景
  • android studio快捷键补全
  • 使用BMFont+NGUI利用图片制作自定义字体
  • jquery easyui插件
  • 浅谈JQuery+ajax+jsonp 跨域访问
  • jquery实现倒计时效果
  • 安卓通用代码
  • 广西国家税务总局电子税务局官网
  • 换发票需要交钱吗
  • 税务局赵昭
  • 天府新区劳动局投诉电话
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设