函式: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);
}
?>


[ 上一页 下一页 ]