Home » SQL & PL/SQL » SQL & PL/SQL » number precision (oracle, unix)
number precision [message #306736] Sun, 16 March 2008 07:51 Go to next message
Messages: 77
Registered: August 2007
Location: pune

Hi All,

i got a table with two columns having data type number(11,8 ).
when i load data from XMl file through informatica mapping,the zeros towards the right of the decimal get trucated.

for example
create table test1 (Latitude number(11,8),LONGITUDE number(11,8))

insert into test1 values (22.32345500,-11.32345000)

Actual output: 22.323455,-11.32345

for my requirment i need the entire value to be stored(including zeros to the rights).

expected OUTput: 22.32345500,-11.32345000 


Re: number precision [message #306754 is a reply to message #306736] Sun, 16 March 2008 09:54 Go to previous messageGo to next message
Michel Cadot
Messages: 65084
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

Re: number precision [message #307089 is a reply to message #306736] Mon, 17 March 2008 16:25 Go to previous message
Messages: 213
Registered: February 2008
Senior Member
you cannot store trailing zeros in a number field.

You need to format the field whenever you "present" the data.

You can present this in a view over the original table using to_char as Michael has suggested.
Previous Topic: how to count of record for all tables
Next Topic: Can I use a bind arguments in CURSOR for a schema object?
Goto Forum:

Current Time: Fri Jul 21 14:09:19 CDT 2017

Total time taken to generate the page: 0.14769 seconds