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 Class
概念
SQLServerParameterMetaData Methods
SQLServerParameterMetaData Members