PHP函数:ifx_fieldtypes()

列出 Informix 的 SQL 字段。

语法: array ifx_fieldtypes(int result_id);

返回值: 数组

函数种类: 数据库功能

内容说明

本函数可以获得 Informix 的 SQL 指令返回的字段。参数 result_id 是经过 ifx_query() 或 ifx_prepare() 的返回代号。

使用范例

本例为程序的一部份

<?php $types = ifx_fieldtypes($resultid); if (! isset($types)) { // 错误处理 } for ($i = 0; $i < count($types); $i++) { $fname = key($types); printf("%s :\t 类型为: %s\n", $fname, $types[$fname]); next($types); } ?>