Dela via


IResultSetMetaData.GetPrecision(Int32) Method

Definition

Get the designated column's specified column size.

[Android.Runtime.Register("getPrecision", "(I)I", "GetGetPrecision_IHandler:Java.Sql.IResultSetMetaDataInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int GetPrecision (int column);
[<Android.Runtime.Register("getPrecision", "(I)I", "GetGetPrecision_IHandler:Java.Sql.IResultSetMetaDataInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetPrecision : int -> int

Parameters

column
Int32

the first column is 1, the second is 2, ...

Returns

precision

Attributes

Exceptions

if there is a database error.

Remarks

Get the designated column's specified column size. For numeric data, this is the maximum precision. For character data, this is the length in characters. For datetime datatypes, this is the length in characters of the String representation (assuming the maximum allowed precision of the fractional seconds component). For binary data, this is the length in bytes. For the ROWID datatype, this is the length in bytes. 0 is returned for data types where the column size is not applicable.

Java documentation for java.sql.ResultSetMetaData.getPrecision(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to