| title | getScale Method (SQLServerResultSetMetaData) |
|---|---|
| description | getScale Method (SQLServerResultSetMetaData) |
| author | David-Engel |
| ms.author | davidengel |
| ms.date | 01/19/2017 |
| ms.service | sql |
| ms.subservice | connectivity |
| ms.topic | reference |
| apilocation | sqljdbc.jar |
| apiname | SQLServerResultSetMetaData.getScale |
| apitype | Assembly |
[!INCLUDEDriver_JDBC_Download]
Gets the number of digits to the right of the decimal point for the designated column.
public int getScale(int column)
column
An int that indicates the column index.
An int that indicates the scale of the column.
This getScale method is specified by the getScale method in the java.sql.ResultSetMetaData interface.
[!INCLUDEmsCoName] [!INCLUDEssNoVersion] JDBC Driver 3.0 has behavior changes in the DECIMAL_DIGITS column. See SQLServerDatabaseMetaData.getColumns for more information.
SQLServerResultSetMetaData Members
SQLServerResultSetMetaData Class