Php/docs/function.odbc-field-len

提供:Dev Guides
< Php
移動先:案内検索

odbc_field_len

(PHP 4, PHP 5, PHP 7)

odbc_field_lenフィールドの長さ (精度) を得る


説明

odbc_field_len ( resource $result_id , int $field_number ) : int

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


パラメータ

result_id
結果 ID。
field_number
フィールド番号。フィールド番号は 1 から始まります。


返り値

フィールドの長さ、あるいはエラー時に false を返します。


参考

  • 浮動小数点の精度を得るには odbc_field_scale() - フィールドの精度を得る