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

search for in the

msql_fetch_object> <msql_fetch_array
Last updated: Fri, 13 Nov 2009

view this page in

msql_fetch_field

(PHP 4, PHP 5)

msql_fetch_fieldフィールド情報を得る

説明

object msql_fetch_field ( resource $result [, int $field_offset ] )

msql_fetch_field() はあるクエリ結果に含まれる フィールドの情報を取得する際に使用することができます。

パラメータ

result

評価された結果 リソース。 この結果は、msql_query() のコールにより得られたものです。

field_offset

フィールドオフセット。指定されていない場合は、まだ msql_fetch_field() で取得されていない 次のフィールドが返されます。

返り値

フィールド情報を含むオブジェクトを返します。プロパティは以下のとおりです。

  • name - カラム名

  • table - カラムが属するテーブル名

  • not_null - カラムが NULL になることができない場合に 1

  • unique - カラムがユニークキーである場合に 1

  • type - カラムの型

参考



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

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