ifx_fieldproperties
ifx_fieldproperties — SQL フィールドプロパティのリスト
説明
array ifx_fieldproperties ( resource result_id )クエリ中の全てのフィールドの Informix SQL フィールドプロパティを 連想配列として返します。プロパティは、以下のような形式となります。 "SQLTYPE;length;precision;scale;ISNULLABLE" ただし、SQLTYPE は、 "SQLVCHAR" 等の Informix 型。ISNULLABLE は、"Y" または "N" となります。
パラメータ
- result_id
-
result_id は、
ifx_query() または
ifx_prepare() (select 型のクエリのみ!)
により返された有効な結果 ID です。
返り値
result_id のクエリについて、フィールド名を キーとし、SQL フィールドプロパティをデータとした連想配列を返します。 エラーの場合に FALSE を返します。例
例 978. Informix SQL フィールドプロパティ
<?php
$properties = ifx_fieldproperties($resultid);
if (!isset($properties)) {
/* ... エラー ... */
}
foreach ($properties as $fname => $val) {
echo "$fname:\t property = $val\n";
}
?>
参考
ifx_fieldtypes() |
Weblioに収録されているすべての辞書からifx_fieldpropertiesを検索する場合は、下記のリンクをクリックしてください。

- ifx_fieldpropertiesのページへのリンク