IT学习者 -> 技术文档 -> PHP 完全中文手册

函数:pg_FieldType()


pg_FieldType

获得目前字段的类型。

语法: string pg_fieldtype(int result, mixed field);

返回值: 字符串

函数种类: 数据库功能

内容说明

本函数可以得到目前所在字段的类型格式。返回的字符串为字段的类型,包括了 int、real、string....等等。参数 result 为查询结果代码。参数 field 为指定的字段,第一栏为 0。若有错误则返回 -1 值。



[ 上一页  PHP中文手册  下一页 ]



PHP 首页 | PHP 导读 | PHP 函数库 | PHP 函数索引 | PHP 范例程序