array ifx_fieldproperties
(int result_id);result_id のクエリーについて フィールド名をキーとし、SQL フィールドプロパティをデータとした 連想配列を返します。 エラーの場合に FALSE を返します。
クエリー中の全てのフィールドの Informix SQL フィールドプロパティ を連想配列として返します。コード化されるプロパティを次に示します。 "SQLTYPE;length;precision;scale;ISNULLABLE" ただし、SQLTYPE は、 "SQLVCHAR" 等の Informix 型。 ISNULLABLE は、"Y" または "N" となります。
例 1. Informix SQL フィールドプロパティ
$properties = ifx_fieldtypes ($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); }