What is the reason that some people from Oracle background are using DECIMAL(31,0) for integers. In MySQL it is not efficient.
What is the reason that some people from Oracle background are using DECIMAL(31,0) for
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Oracle implements the “INTEGER” ANSI datatype as a synonym for NUMBER(38)
For more details see “Learn Oracle: Datatypes for SQL and PL/SQL, Numbers“
However, the following table should be used as a mapping between datatype in Oracle and MySQL:
“Oracle® Database SQL Developer Supplementary Information for MySQL Migrations”
Oracle and MySQL Compared > Data Types > Comparing Data Types
The main difference, as explained here and here is that Oracle NUMBER datatype is variable-length format while MySQL DECIMAL(n) datatype used to be
represented as strings that require one byte per digit or sign character(before version 5.0.3)and