函式:ifx_fieldtypes()


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


[ 上一页 下一页 ]