位置: 编程技术 - 正文

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

  • 软件退税收入会计分录
  • 税财通财务软件下载
  • 关税完税价格是到岸价吗
  • 出口退税的账怎么做
  • 什么是保函业务?如何进行核算?
  • 差旅费的现金流
  • 审核通过的红字发票怎么作废
  • 农产品收购发票可以跨区域开吗
  • 30万的车税可以抵多少
  • 外籍个人工资薪金汇出境
  • 清税证明要什么证件
  • 无形资产增资账务处理
  • 人力资源外包服务增值税税率
  • 预付账款冲减费用
  • 建筑业购进苗木进项抵税计算公式是什么
  • 普通发票计量单位没填
  • 未达起征点销售额和小微企业免税销售额
  • 个税申报系统在哪里撤销更正
  • 企业工资和社保缴费基数
  • 我的初级备考经历怎么写
  • 申报表利润总额与财务报表利润总额
  • 一次性优惠税率表
  • 经营租赁交什么税种
  • 自建厂房领用材料进项税的处理
  • 框架采购合同如何计贴印花税?
  • 汇算清缴后补缴得企业所得税,计入哪年的税负
  • 财务报表包括哪几个表
  • 发票金额大于报销金额可以吗
  • 减税降费是针对个人还是企业
  • 支付广告费会计怎么做账
  • PHP选项代码
  • 付款结算单范本
  • 企业怎么知道增值税的核定方法
  • yarn install报错
  • 收到现金货款存入银行会计分录
  • thinkphp常用函数
  • 投喂小鸟
  • Video Transformer | TimeSformer 理解+ 代码实战
  • gridviewcolumn
  • 使用什么指令可以清空memcached数据库中的所有数据
  • mongodb 查询条件
  • 关于低值易耗品的说法中不正确的是
  • 现金流量表季报本月数是三个月的数据吗
  • python中htmlparser解析html
  • sql语句中的decode函数
  • 进项税认证抵扣流程
  • 其他应收款主要是什么
  • 支付水电费会计
  • 自制半成品属于什么会计要素
  • 银行付款明细
  • 行政事业单位过节费发放规定
  • 可供出售金融资产公允价值变动
  • 微信转账没有显示对方的名字怎么办
  • 信用代码证过期了6年怎么办理
  • 安装固定资产领域有哪些
  • 固定资产明细账怎么填
  • 销售退货怎么开票
  • 如何利用公式计算
  • xp系统怎么添加我的电脑到桌面
  • win7系统运行慢,如何提速
  • linux检测硬盘故障
  • CentOS救援模式实验笔记详解
  • 将Red Hat 9.0 CD iso合成一张DVD iso的方法
  • win7360安全卫士有必要装吗
  • win7保存桌面不见了怎么办
  • win10/win8.1/win7系统遇到中英文输入法无法切换怎么办?
  • win10系统开机重装教程
  • linux调整桌面分辨率
  • OpenGl的glMatrixMode()函数理解
  • qt_5 not found
  • html+css代码
  • shell脚本一百例
  • 用javascript
  • javascript从入门到放弃
  • javascript中对象的含义
  • Python对象转列表
  • 开票系统怎么设置默认税率
  • 生产企业税点
  • 企业所得税一年算几次
  • 荆州区国税局
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设