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

Is sql considered coding?

758


How to display Row Number with Records in Oracle SQL Plus?

769


How does postgresql compare to oracle/db2/ms sql server/informix?

772


What is update query?

711


how to get @@error and @@rowcount at the same time? : Sql dba

736






Why do we use cursors?

668


What is the main difference between sql and pl/sql?

753


Does pl sql work in mysql?

687


what is primary key? : Sql dba

710


Why stored procedure is better than query?

690


What is trigger and how to use it in sql?

723


How do I run sql?

826


Does a primary key have to be a number?

687


define join and explain different type of joins? : Sql dba

736


What is the purpose of using pl/sql?

826