Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Numeric Data

This is a discussion on Numeric Data within the Oracle forums, part of the Databases category; I created a table for testing purpose create table xx (a number) inserting 38 digit number insert into xx values(11111111111111111111111111111111111111) inserting 39 digit number insert into xx values(111111111111111111111111111111111111111) inserting 126 ...

Go Back   Geeks Talk > Databases > Oracle
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

Oracle Oracle 9i & Oracle 10g Knowledge Base Learn and Share Oracle Technology related articles, white papers, tutorials / study materials, example codes, FAQ's, Tips and Tricks.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-23-2008
Expert Member
 
Join Date: Sep 2007
Posts: 738
Thanks: 22
Thanked 67 Times in 65 Posts
krishnaindia2007 is on a distinguished road
Numeric Data

I created a table for testing purpose
create table xx (a number)

inserting 38 digit number
insert into xx values(11111111111111111111111111111111111111)

inserting 39 digit number
insert into xx values(111111111111111111111111111111111111111)

inserting 126 digit number
insert into xx values(1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111)

if i try to insert 127 digit number then it is showing message ora - 01426 numeric overflow.

Precision for oracle numeric data is 38 only. How it is accepting a numeric value upto 126 digits?

Last edited by krishnaindia2007; 02-23-2008 at 06:51 AM.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-25-2008
Expert Member
 
Join Date: Apr 2007
Location: Bangalore
Posts: 530
Thanks: 30
Thanked 63 Times in 61 Posts
susarlasireesha will become famous soon enough
Re: Numeric Data

For Example ,if precision is defined
create table xx (a number(38))
----
inserting 39 digit number
insert into xx values(111111111111111111111111111111111111111)
then it will return error ora-01438
-----

if not defined then
the precision is the maximum number of significant decimal digits i.e 126 binary digits
Reply With Quote
  #3 (permalink)  
Old 02-25-2008
Expert Member
 
Join Date: Sep 2007
Posts: 738
Thanks: 22
Thanked 67 Times in 65 Posts
krishnaindia2007 is on a distinguished road
Re: Numeric Data

Whether numeric datatype is fixed length datatype or variable length datatype? i.e. Whether if takes fixed length irrespective of value we stored just like char datatype or it takes space depending on the value we stored?
Reply With Quote
  #4 (permalink)  
Old 02-26-2008
Expert Member
 
Join Date: Sep 2007
Posts: 738
Thanks: 22
Thanked 67 Times in 65 Posts
krishnaindia2007 is on a distinguished road
Re: Numeric Data

I found answer. Numbers in an oracle database are always stored as variable length data.

Last edited by krishnaindia2007; 02-26-2008 at 12:14 AM.
Reply With Quote
Reply

  Geeks Talk > Databases > Oracle

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
data flows in the architecture of data warehouse? pkishoreroy Data Warehousing 1 03-27-2008 02:33 AM
Data Warehouse Bulk Data Transfer Lokesh M Data Warehousing 0 01-31-2008 05:52 AM
Explicit data type conversion for numeric field sangeethadutt VB.NET 1 07-27-2007 01:00 AM
Extract Data from Operational Data sources Dynamically Geek_Guest Data Warehousing 0 07-22-2007 12:55 PM
Control file syntax to transfer data from multiple data files Geek_Guest Oracle Apps 0 06-14-2007 10:35 AM


All times are GMT -4. The time now is 05:37 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2005 - 2010 GeekInterview.com. All Rights Reserved