odbc_field_type

(PHP 4, PHP 5, PHP 7, PHP 8)

odbc_field_typeフィールドのデータ型を返す

説明

odbc_field_type(resource$statement, int$field): string|false

指定された ODBC 結果 ID において指定番号で参照されるフィールドの SQL 型を取得します。

パラメータ

statement

結果 ID。

field

フィールド番号。フィールド番号は 1 から始まります。

戻り値

フィールドの型を表す文字列、あるいはエラー時に false を返します。

To Top