ingres_field_scale

(PHP 4 >= 4.0.2, PHP 5 < 5.1.0, PECL ingres >= 1.0.0)

ingres_field_scaleフィールドのスケールを得る

説明

ingres_field_scale ( resource $result , int $index ) : int

ingres_field_scale() はフィールドのスケールを返します。 この値は、SQLデータ decimal 型でのみ使用されます。 詳細な情報については、Ingres OpenAPI User Guide の Appendix "Data Types" を参照ください。

注意: 関連する設定

実行時設定ingres.array_index_start を参照ください。

パラメータ

result

クエリ結果 ID。

index

index は、スケールを取得したいフィールドです。

index の取りうる値は ingres.array_index_start の値に依存します。 ingres.array_index_start1 (デフォルト) の場合は、index1 以上 ingres_num_fields() 以下でなければなりません。 ingres.array_index_start0 の場合は、index0 以上 ingres_num_fields() 未満でなければなりません。

返り値

フィールドのスケールを返します。

参考