Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

pls_integer vs. number

Roger25Feb 10 2012 — edited Feb 10 2012
PLS_INTEGER values require less storage than NUMBER values. Also, PLS_INTEGER operations use machine arithmetic, so they are faster than NUMBER and BINARY_INTEGER operations, which use library arithmetic.
Having this, if i add two numbers, one of NUMBER data type and one of pls_integer (or simple_integer) data type, where will this operation be done? In the library arithmetic or machine arithmetic?

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Mar 9 2012
Added on Feb 10 2012
2 comments
2,349 views