(PHP 3>= 3.0.3, PHP 4 )
ifx_fieldproperties -- SQL フィールドプロパティのリスト
説明
array
ifx_fieldproperties ( int result_id)
result_id のクエリーについてフィールド名を
キーとし、SQL フィールドプロパティをデータとした連想配列を返しま
す。エラーの場合にFALSEを返します。
クエリー中の全てのフィールドの Informix SQL フィールドプロパティ
を連想配列として返します。コード化されるプロパティを次に示します。
"SQLTYPE;length;precision;scale;ISNULLABLE" ただし、SQLTYPE は、
"SQLVCHAR" 等の Informix 型。ISNULLABLE は、"Y" または "N" となり
ます。
例 1Informix SQL フィールドプロパティ $properties = ifx_fieldproperties ($resultid);
if (! isset($properties)) {
... error ...
}
for ($i = 0; $i < count($properties); $i++) {
$fname = key ($properties);
printf ("%s:\t type = %s\n", $fname, $properties[$fname]);
next ($properties);
} |
|