downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ifx_fieldtypes> <ifx_fetch_row
Last updated: Fri, 13 Nov 2009

view this page in

ifx_fieldproperties

(PHP 4, PHP <=5.2.0)

ifx_fieldpropertiesSQL フィールドプロパティのリスト

説明

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 を返します。

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

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

参考



add a note add a note User Contributed Notes
ifx_fieldproperties
There are no user contributed notes for this page.

ifx_fieldtypes> <ifx_fetch_row
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites