Oracle 分配给“count(*)”的 SQL 数据类型是什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3504456/
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 21:17:26 来源:igfitidea点击:
What SQL data type does Oracle assign to "count(*)"?
提问by Derek Mahar
What SQL data type does Oracle assign to count(*)
in a query like select count(*) from table
? Does this depend on the count size?
Oraclecount(*)
在查询中分配给什么 SQL 数据类型select count(*) from table
?这是否取决于计数大小?
回答by OMG Ponies
The value is an integer; Oracle only has a NUMBER
data type.
该值是一个整数;Oracle 只有一种NUMBER
数据类型。