Oracle Data types

5 pts.
Tags:
Data Types
Oracle 9i
I am just learning an ORACLE 9i Book and i was seen that in number Data type the Range is Lies between 1 to 38 in Decimal And -84 to 127 of Scale Range How it is possible because these Fraction degits are subtratect from whole degits ex:-
var1 number (5,25);--------------(1)--it is possible?
var2 number (5,-20)--------------(2);--and also this?
In above example in statement (1) how can 25 devide into 5 and if i will then what will become the range of that variable. Please Give me the answer of it. Because i m so confused of it,
ASKED: September 2, 2008  9:30 PM
UPDATED: September 3, 2008  1:11 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hi,

Positive scale means the number of digit to right of decimal point, when scale is bigger than precision than 0′s added before significant digits, in your case var1 will look like something like 0.0….012345, there will be 20 zeros.

Negative scale on the other hand represents number of digits on the left of decimal point therefore the power of 10, so your var2 will look like 12345* 10**20

good luck!

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following