函数:ifx_fieldproperties()


ifx_fieldproperties

列出 Informix 的 SQL 字段属性。

语法: array ifx_fieldproperties(int result_id);

返回值: 数组

函数种类: 数据库功能

内容说明

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

使用范例

本例为程序的一部份

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



[ 上一页 PHP 手册 下一页 ]



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