oracle 中的哪种数据类型会映射到 Java int?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3040822/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-18 20:49:24  来源:igfitidea点击:

What datatype in oracle would map to a Java int?

javaoraclejpaoracle10g

提问by benstpierre

What type in Oracle (10 Express Edition) would be the "same" as a Java int?

Oracle (10 Express Edition) 中的哪种类型与 Java int“相同”?

回答by Martin Milan

Java's int has a range of -2,147,483,648 to 2,147,483,647 - so Number(10,0) is as close as you're going to get...

Java 的 int 的范围为 -2,147,483,648 到 2,147,483,647 - 所以 Number(10,0) 与您将要得到的一样接近......

回答by Pascal Thivent

I'd say number(10,0).

我会说number(10,0)

回答by eoracleapps

try NUMBER . In Oracle we use Number for Integer

尝试 NUMBER 。在 Oracle 中,我们使用 Number 表示整数