On Transact SQL language the numeric data types that have fixed precision and scale.
Numeric syntax:
Precision | Storage |
---|---|
1 - 9 | 5 Bytes |
10-19 | 9 Bytes |
20-28 | 13 Bytes |
29-38 | 17 Bytes |
Numeric example:
USE model;
GO
CREATE TABLE myNumTable ( a numeric (12,6) );
GO
INSERT INTO myNumTable VALUES (777.123);
GO
SELECT a FROM myNumTable;
GO
Results |
---|
777.123000 |