开发者

Datatype decimal(6, 2)

开发者 https://www.devze.com 2023-02-20 08:16 出处:网络
If I have a datatype of decimal(6, 2) what would a sample data be? I\'m using ASP.NET MVC if that make开发者_运维技巧s a difference. Thanks.Assuming you mean that the database type is decimal(6, 2),

If I have a datatype of decimal(6, 2) what would a sample data be?

I'm using ASP.NET MVC if that make开发者_运维技巧s a difference. Thanks.


Assuming you mean that the database type is decimal(6, 2), then this means that your column is set up to store 6 places (scale), with 2 to the right of the decimal (precision). You should treat this as a decimal CLR type.

A sample would be 1234.56.

0

精彩评论

暂无评论...
验证码 换一张
取 消