精度和比例有什么区别? [英] What is the difference between precision and scale?

查看:28
本文介绍了精度和比例有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

这篇关于精度和比例有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆