getScale(int param)

Syntax:

int getScale(int param)
             throws SQLException

Description:

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

Parameters:

param

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

Returns:

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

Throws:

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

Reference:

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