PLS_INTEGER Data Type
Description
The
PLS_INTEGER
data type stores signed integers in the range -2,147,483,648 through 2,147,483,647, represented in 32 bits. (Oracle Language Reference PLS_INTEGER Data Type)
The PLS_INTEGER
datatype is transformed to NUMBER
. This transformation also applies for each PLS_INTEGER
subtype:
NATURAL
NATURALN
POSITIVE
POSITIVEN
SIGNTYPE
SIMPLE_INTEGER
Some of these subtypes are currently not recognized by SnowConvert so they are converted to VARIANT
and considered user-defined types. There is already a work item to fix the issue.
Sample Source Patterns
Please, consider the following table and its inserts for the examples below:
PLS_INTEGER usage in procedural blocks
Oracle
Snowflake
Known Issues
1. Storage and performance features were not preserved
Oracle PLS_INTEGER
has some advantages in terms of storage size and performance in arithmetic operations. These features were not emulated because Snowflake NUMBER
does not have them. For more information, check the PLS_INTEGER documentation.
Related EWIs
MSCEWI1036: Data type converted to another data type.
Last updated