what is the difference between binary_integer and
pls_integer

Answer Posted / l. meher

The difference is :

PLS_INTEGER and BINARY_INTEGER have the same magnitude
range, they are not fully compatible. When a PLS_INTEGER
calculation overflows, an exception is raised. However,
when a BINARY_INTEGER calculation overflows, no exception
is raised if the result is assigned to a NUMBER variable.

Also, PLS_INTEGER operations use machine arithmetic, so
they are faster than NUMBER and BINARY_INTEGER operations,
which use library arithmetic.

In new applications, always use PLS_INTEGER for better
performance.

Is This Answer Correct ?    15 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is normalization in a database?

612


How to select the Nth maximum salary from Table Emp in Oracle SQL Plus ?

600


What is the syntax and use of the coalesce function?

599


How do I view tables in mysql?

543


What is the best partition size for windows 10?

487






What is left join example?

504


what is try_catch block in procedure

1191


What is the difference between delete, truncate and drop command?

552


What is user in sql?

582


What are the operators in sql?

529


Is pl sql different from sql?

534


What are the different sql commands?

519


How do you create a unique index?

573


What pl/sql package consists of?

638


Is a secondary key the same as a foreign key?

492