| title | getPrecision Method (SQLServerParameterMetaData) |
|---|---|
| description | getPrecision Method (SQLServerParameterMetaData) |
| author | David-Engel |
| ms.author | davidengel |
| ms.date | 01/19/2017 |
| ms.service | sql |
| ms.subservice | connectivity |
| ms.topic | reference |
| apilocation | sqljdbc.jar |
| apiname | SQLServerParameterMetaData.getPrecision |
| apitype | Assembly |
[!INCLUDEDriver_JDBC_Download]
Retrieves the number of decimal digits of the designated parameter.
public int getPrecision(int param)
param
An int that indicates parameter index.
An int that indicates the precision of the designated parameter.
This getPrecision method is specified by the getPrecision method in the java.sql.ParameterMetaData interface.
For number types, this method gets the number of decimal digits. For character types, it gets the maximum length in characters. For binary types, it gets the maximum length in bytes. Where the number of digits is unknown, this method returns "0".
SQLServerParameterMetaData Methods
SQLServerParameterMetaData Members
SQLServerParameterMetaData Class