getScale(int column)

Syntax:

int getScale(int column)
             throws SQLException

Description:

Gets the designated column's number of digits to right of the decimal point. 0 is returned for data types where the scale is not applicable.

Parameters:

column

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

Returns:

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

Throws:

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.

Reference:

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