位置: 编程技术 - 正文

PHP:pg_field_type_oid()的用法_PostgreSQL函数

编辑:rootadmin
pg_field_type_oid

推荐整理分享PHP:pg_field_type_oid()的用法_PostgreSQL函数,希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!

(PHP 5 >= 5.1.0)

pg_field_type_oid — Returns the type ID (OID) for the corresponding field number

说明 int pg_field_type_oid ( resource $result , int $field_number )

pg_field_type_oid() returns an integer containing the OID of the base type of the given field_number in the given PostgreSQL result resource.

You can get more information about the field type by querying PostgreSQL&#;s pg_type system table using the OID obtained with this function. The PostgreSQL format_type() function will convert a type OID into an SQL standard type name.

Note:

If the field uses a PostgreSQL domain (rather than a basic type), it is the OID of the domain&#;s underlying type that is returned, rather than the OID of the domain itself.

参数 PHP:pg_field_type_oid()的用法_PostgreSQL函数

result

PostgreSQL query result resource, returned by pg_query(), pg_query_params() or pg_execute() (among others).

field_number

Field number, starting from 0.

返回值

The OID of the field&#;s base type. FALSE is returned on error.

范例

Example #1 Getting information about fields

<?php$dbconn=pg_connect("dbname=publisher")ordie("Couldnotconnect");//Assume'title'isavarchartype$res=pg_query($dbconn,"selecttitlefromauthorswhereauthor='Orwell'");echo"TitlefieldtypeOID:",pg_field_type_oid($res,0);?>

以上例程会输出:

参见

pg_field_type() - 返回相应字段的类型名称 pg_field_prtlen() - 返回打印出来的长度 pg_field_name() - 返回字段的名字

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_num()的用法_PostgreSQL函数 pg_field_num(PHP4=4.2.0,PHP5)pg_field_num返回字段的编号说明intpg_field_num(resource$result,string$field_name)pg_field_num()返回给定PostgreSQLresult资源中的field_name所代表的列(

标签: PHP:pg_field_type_oid()的用法_PostgreSQL函数

本文链接地址:https://www.jiuchutong.com/biancheng/281490.html 转载请保留说明!

上一篇:PHP:pg_field_table()的用法_PostgreSQL函数

下一篇:PHP:pg_field_size()的用法_PostgreSQL函数

  • 公司出售厂房需要交哪些税
  • 小规模纳税人免征增值税怎么记账
  • 小规模纳税人购入和销售的增值税
  • 职工意外伤害险赔偿范围
  • 跨年租赁费如何处理
  • 生产车间维修费是制造费用还是管理费用
  • 无形资产登记什么明细账
  • 人力资源的差额征收怎么报企业所得税
  • 用友t3普及版价格
  • 公司购买车辆抵扣税
  • 长期投资换入固定资产如何处理
  • 跨月收入账务处理
  • 金融机构利息收入缴纳增值税
  • 农产品增值税抵扣新政策2021
  • 库存盘亏的原因
  • 房地产开发企业会计科目
  • 应税销售额含不含税
  • 南方建筑主编
  • 关于城建税教育费附加地方教育附加的计算
  • 营业收入中包括营业外收入吗
  • 销售原材料结转会计分录
  • 分期收款计提销项税怎么算
  • 筹建期间所得税
  • 清算期间未申报债权
  • 收到财政扶贫补贴会计分录
  • 调整以前年度应付工资怎么调
  • 坏账损失企业所得税
  • 固定资产净值与原值的区别
  • 鸿蒙系统怎么设置桌面小组件
  • 生产成本包括哪些项目
  • cmdkill进程
  • 股东权益增加额/期初净经营资产
  • win10蓝牙搜索不到ps4手柄
  • 售后租回交易形成融资租赁会计处理
  • passwd -s命令
  • ts基础类型
  • php实现用户登录
  • 海关进口增值税怎么认证抵扣
  • 小微企业应纳税所得额300万所得税
  • 注销小规模公司需要什么材料
  • 职工福利费的开支范围有哪些
  • mysqli删除
  • 科目余额表怎么填
  • 纳税申报表上的销售额是不含税的吗
  • 记账凭证红字冲销下面合计写不写
  • 企业所得税资产总额季初季末怎么填
  • 企业贴现会计分录
  • 补交以前年度的城建税会计分录
  • 丁字账户例题及解析
  • 公司法规定股权转让需要满足什么条件
  • 小规模纳税人需要每月报税吗
  • 企业购买黄金该交什么税
  • 对公支付宝提现怎么取消
  • 小规模企业所得税优惠政策最新2023
  • 问答:分支机构是否需要设立账簿
  • 建账时应考虑的问题包括下列哪三项
  • 材料物资核算应由谁负责
  • 工程施工明细科目结转吗
  • Linux(Ubuntu)下mysql5.7.17安装配置方法图文教程
  • win8怎么没有我的电脑
  • linux的free
  • winxp系统开机启动项
  • 升级 win10
  • mac怎么利用蓝牙传输文件
  • win10无法进入休眠状态的原因
  • kmsss.exe是什么
  • opengl模块加载失败
  • Android OpenGL ES 入门
  • shell 函数 return
  • python里模块
  • linux shell脚本攻略(第3版)
  • os模块 python
  • 圣诞树代码html
  • js操作对象的方法
  • 在windows中快捷键的作用
  • genymotion-unable to load virtualbox engine
  • android软件开发实例
  • 甘肃职称申报评审入口官网
  • 电子税务局企业账号是税号吗
  • 职工周转房需要缴纳房产税吗
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设