pls_integer类型
来源:互联网 发布:hub网络集线器 编辑:程序博客网 时间:2024/06/05 01:09
PLS_INTEGER可以存储一个有符号的整形值,其精度范围和BINARY_INTEGER一样,是:-2^31~2^31。
PLS_INTEGER和NUMBER比较起来,其优点是:
1).占有较少的存储空间;
2).可以直接进行算术运算(在NUMBER上不能直接进行算术运算,如果要计算,NUMBER必须先被转换成二进制)。所以在进行算术的时候PLS_INTEGER比NUMBER和BINARY_INTEGER快一些。
PLS_INTEGER和BINARY_INTEGER区别:
PLS_INTEGER进行的运算发生溢出的时候,会触发异常。但是当BINARY_INTEGER运算发生溢出时,如果可以指派给一个NUMBER变量(没有超出NUMBER的精度范围)的话就不会触发异常。
Benefits of Using PLS_INTEGER Datatype in PL/SQL
If you have a whole-number counter, for example in a loop or record counter, consider using a datatype ofPLS_INTEGER instead of INTEGER or NUMBER. When declaring an integer variable,PLS_INTEGER is the most efficient numeric datatype because its values require less storage than INTEGER or NUMBER values, which are represented internally as 22-byte Oracle numbers. Also,PLS_INTEGER operations use machine arithmetic, so they are faster than BINARY_INTEGER, INTEGER, or NUMBER operations, which use library arithmetic.
转自:http://blog.csdn.net/heqiyu34/article/details/6709125
- pls_integer类型
- pls_integer类型
- pls_integer类型
- Oracle 的pls_integer类型
- PLSQL中的类型与PLS_INTEGER
- PLS_INTEGER
- PLS_INTEGER
- PLS_INTEGER类型对性能的些许奉献
- oracle中integer、pls_integer和number类型
- 存储过程中变量类型:number,pls_integer,small integer
- Pls_Integer、Binary_Integer、Number
- PLS_INTEGER和BINARY_INTEGER以及NUMBER
- PLS_INTEGER、BINARY_INTEGER和SIMPLE_INTEGER区别
- Oracle中Binary_Integer与Pls_Integer 的区别
- Oracle中Binary_Integer与Pls_Integer 的区别
- PLS_INTEGER数据类型与BINARY_INTEGER的区别
- ORACLE之 BINARY_INTEGER 与 PLS_INTEGER 的区别
- Oracle中Binary_Integer与Pls_Integer 的区别
- ios上 x264 编译
- android避免database locked
- 旁路电容和去耦电容的区别
- 黑马程序员_单例设计模式和对象数组的使用
- Linux内核的ioctl函数学习
- pls_integer类型
- mysql分区表---range partition
- 开发人员一定要加入收藏夹的网站
- 19 二叉查找树 (一)
- snmputil源码
- net.sf.json.JSONException: Object is null
- linux 实时时钟(RTC)驱动
- WebUI Navigation guide
- Windows和Linux双系统下grub选单的清除