ifx_fieldproperties

(PHP 3 >= 3.0.3, PHP 4, PHP 5)

ifx_fieldproperties -- SQL フィールドプロパティのリスト

説明

array ifx_fieldproperties ( resource result_id )

result_id のクエリについて、フィールド名を キーとし、SQL フィールドプロパティをデータとした連想配列を返します。 エラーの場合に FALSE を返します。

クエリ中の全てのフィールドの Informix SQL フィールドプロパティを 連想配列として返します。プロパティは、以下のような形式となります。 "SQLTYPE;length;precision;scale;ISNULLABLE" ただし、SQLTYPE は、 "SQLVCHAR" 等の Informix 型。ISNULLABLE は、"Y" または "N" となります。

例 1. Informix SQL フィールドプロパティ

<?php
$properties
= ifx_fieldproperties($resultid);
if (!isset(
$properties)) {
    
/* ... エラー ... */
}
foreach (
$properties as $fname => $val) {
    echo
"$fname:\t property = $val\n";
}
?>