getPrecision(int column)


int getPrecision(int column)
                 throws SQLException


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.



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


Returns an integer which is the precision of the column as described above.


SQLException - if a database access error occurs, column is less than 1 or greater than the number of columns or the object has been closed.


For more information, reference JDBC documentation for: ResultSetMetaData.getPrecision(int)