位置: 编程技术 - 正文

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

  • 汇算清缴退税会计科目
  • 树苗应计入什么科目里面
  • 培训产生的住宿费算培训费吗
  • 投资收益做什么
  • 19年房产税新规
  • 索赔费用项目
  • 商贸公司运输发票怎么开
  • 社保如何会计处理
  • 现金日记账怎么记账借方还是贷方
  • 逐步测试法计算内含报酬率
  • 购买实验器材会计分录
  • 产生的信息服务有哪些
  • 生产成本里面的工会经费
  • 企业物流运输
  • 城建税和教育费附加计入什么科目
  • 填开了红字信息表但未开红字发票
  • 印花税合同金额和结算金额不一致
  • 金税盘怎么开红字发票流程
  • 预收的电费增值税如何缴纳?
  • 光伏安装工程公司有哪些
  • 存货进项税额转出会计处理
  • 现金为负数时怎么做账
  • 现金清查制度的内容包括
  • 进口货物可以退回吗
  • php怎么上传多个图片
  • 为什么浏览器自动打开
  • macbookpro常见问题
  • 新公司成立前期费用
  • 电脑密码解除步数怎么弄
  • PQIBrowser.exe是什么进程 PQIBrowser进程查询
  • 销售自己2008年1月购入并作为
  • 马德拉海岛
  • 前端页面加载缓慢怎么办
  • kk协议
  • Vite4+Pinia2+vue-router4+ElmentPlus搭建Vue3项目(组件、图标等按需引入)[保姆级]
  • 购买低值易耗品的现金流属于什么
  • python3.9怎么清屏
  • mysql 临键锁
  • opengl 帧率
  • 个人在平台销售怎么做
  • 自然人代开经营所得汇算清缴怎么做
  • 税金及附加怎么做分录
  • 社保为什么单位缴费是0什么时间才正常
  • sql怎么搜索表
  • 城市维护建设税怎么算
  • 开票航天信息要交年费吗
  • 确认借款无法收款怎么办
  • 研发费用加计扣除政策指引2.0
  • 上月多出来的薪资怎么算
  • 契税是房价乘以1.5吗
  • 预交增值税后期处理
  • 营销策划服务费属于什么服务
  • 劳务增票多少个点
  • 存货的进口关税计入成本吗
  • 预付卡的含义
  • 研发费用范围不包括
  • 金蝶软件采购订单
  • 销售回款率怎么计算,麻烦知道的告诉我,11
  • 采用账龄分析法计提坏账准备
  • mysql5.6解压版安装教程
  • xp磁盘检测命令
  • 添加到右键快捷方式
  • FastDFS4和Ubuntu12安装及部署步骤
  • 蓝屏错误疑难解答win7
  • 微软补丁发布时间
  • sql2000停止拒绝访问
  • 你可能不知道的中融新大
  • echarts splitnumber
  • 如何正确使用农药芸苔素
  • perl命令行参数内建数组
  • Android UI之GridLayout(网格布局)
  • 京东试用js脚本
  • 基于javascript的毕业设计
  • jquery.multiselect多选下拉框实现代码
  • 怎么打印纳税申报表带章的
  • 广州地税局官网办事点
  • 宁波出租车购买
  • 江苏省无锡市国家电网客服电话是多少
  • 车船使用税是什么样的单子
  • 广东省税务局网络不通
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设