public interface Decimal extends SQLDataType, ParametrizableDataType
This class represents the DECIMAL data type, sometimes abbreviated as DEC. The site
http://intelligent-enterprise.informationweek.com/000626/celko.jhtml explains difference between NUMERIC and
DECIMAL:
The difference between DECIMAL(s,p) and NUMERIC(s,p) is subtle in the SQL-92 Standard -- DECIMAL(s,p) must be exactly as precise as declared, while NUMERIC(s,p) must be at least as precise as declared.
| Modifier and Type | Method and Description |
|---|---|
Integer |
getPrecision()
Returns the precision (first integer) for this
DECIMAL. |
Integer |
getScale()
Returns the scale (second integer) for this
DECIMAL. |
Copyright © 2010-2012. All Rights Reserved.