位置: 编程技术 - 正文

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

  • 公车私车税收区别
  • 工资延期发放最多不能超过多少天
  • 个人将租用的商铺怎么办
  • 小规模要交增值税怎么计提
  • 资产的计税基础怎么计算
  • 工会经费申报晚了怎么处理
  • 开户行为什么是中国建设银行总行
  • 在建工程转固定资产账务处理
  • 行政单位待处理财产损益要结转吗
  • 销售边角料收入属于什么收入
  • 咨询费成本怎么成本结转
  • 电子发票不小心删掉了怎么办
  • 个人如何开劳务费怎么开
  • 物业管理费什么时候交?
  • 设备租赁费发票
  • 花椒油的税率
  • 企业收付款流程图
  • 耗材会计分录做账怎么做
  • 资产减值损失怎么影响利润
  • 购买的无形资产入账价值
  • 一次性购房发票什么时候给开
  • 怎么免费获取百度文库的付费文档
  • 银行承兑汇票接收
  • 企业合并案例
  • 应收账款坏账收回影响利润么
  • dotnetfx2.0
  • php linq
  • php_fileinfo作用
  • 常见造成账目差异的原因
  • 应交增值税视频讲解
  • 利用php实现一个数组
  • 前端使用vue
  • lama羊驼
  • js去掉数组中的空字符串
  • web自动化测试项目
  • 结转完工产品成本的会计分录
  • 标书注意事项与如何制作标书
  • 织梦cms要钱吗
  • 个人包含什么
  • 出口报关单运费可以填0吗
  • 食堂买菜是什么费用
  • 个人社保信息变更流程
  • 公允价值进行会计计量
  • mysql 查询平均值
  • 应交税费账户的用途和结构是怎样的
  • 未入账负债怎么算
  • 公司内部食堂招待费账务处理
  • 事业单位取暖费2023
  • 免税农产品怎么开发票
  • 销售商品成本核算
  • 公司注销资本公积
  • 预存返现活动规则
  • 固定资产后期可以折旧吗
  • 年末结账与财务的关系
  • 建账的要点
  • centos如何设置ip
  • macbookair如何恢复系统
  • linux版本ubuntu
  • 深度探索linux操作系统:系统构建和原理解析
  • win1021h2正式版
  • win10一直弹werfault,程序也打不开
  • windows 开发工具
  • vlcplayer最新版
  • win7系统怎么隐藏桌面
  • jquery Ajax 全局调用封装实例详解
  • Android LayoutInflater原理分析,带你一步步深入了解View(一)
  • html+css代码
  • android系统架构由几部分组成
  • windows配额
  • 网页制作范例
  • easyui控件
  • python里面有什么
  • js实现隔行换色
  • jquery示例
  • 个体工商户税务年报网上怎么申报
  • 如何将个税人员信息改为非正常
  • 合肥税务网几时成立的
  • 村纪检书记主要工作
  • 税收政策对中小微企业的影响数据公式
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设