精度和比例有什么区别?

2021-12-25 00:00:00 types oracle

Oracle 中的精度和小数位数有什么区别?在教程中,他们通常在创建主键时将 scale 留空并将精度设置为 6.

What is the difference between precision and scale in Oracle? In tutorials they usually leave scale empty and set precision to 6 when creating a primary key.

精度和规模代表什么?

推荐答案

Precision 4, scale 2: 99.99

Precision 4, scale 2: 99.99

精度 10,比例 0:9999999999

Precision 10, scale 0: 9999999999

精度 8,比例 3:99999.999

Precision 8, scale 3: 99999.999

精度 5,比例 -3:99999000

Precision 5, scale -3: 99999000

相关文章