How do I interpret precision and scale of a number in a database?

后端 未结 3 513
梦如初夏
梦如初夏 2020-11-28 17:56

I have the following column specified in a database: decimal(5,2)

How does one interpret this?

According to the properties on the column as viewed in SQL Ser

3条回答
  •  [愿得一人]
    2020-11-28 18:25

    Precision, Scale, and Length in the SQL Server 2000 documentation reads:

    Precision is the number of digits in a number. Scale is the number of digits to the right of the decimal point in a number. For example, the number 123.45 has a precision of 5 and a scale of 2.

提交回复
热议问题