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

search for in the

oci_field_size> <oci_field_precision
Last updated: Fri, 13 Nov 2009

view this page in

oci_field_scale

(PHP 5, PECL OCI8 >= 1.1.0)

oci_field_scaleフィールドの桁数を問い合わせる

説明

int oci_field_scale ( resource $statement , int $field )

field に対応するカラムの桁数を返します。

FLOAT 型カラムの精度は 0 でなく桁数は -127 となります。 もし精度が 0 の場合、カラムは NUMBER 型、そうでなければ NUMBER(精度, 桁数) となります。

パラメータ

statement

有効な OCI ステートメント ID。

field

フィールド番号 (1 から始まる) あるいは名前のいずれか。

返り値

桁数を表す整数値、あるいはエラー時に FALSE を返します。

注意

注意: PHP バージョン 5.0.0 以前では、代わりに ocicolumnscale() を使用しなければなりません。 まだこの名前を使用することができ、下位互換性のため oci_field_scale() への別名として残されていますが、 推奨されません。

参考



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

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