many stores not in the required format

Hi all
I want to record numbers in the database as 00001,7,2500,100.00,3,000 and so on sound do not store properly when I search her, returning for 00001, 1 single with zero non-significant and for 7,2500 is coated 72500 someone can help me?

Sarah

You cannot save in the number data type as number 0 on the left treat as an escape and ignore everything by storing... What you found is correct. ',' is not a number, so again, you get a correct result. If you want to achieve what you try then you use Varchar to store these numbers as strings.
Please see a small test

SQL> show user
USER is "SCOTT"
SQL> create table n_test(a number,b varchar(10));

Table created.

SQL> insert into n_test values (00001,'00001');

1 row created.

SQL> insert into n_test values (72,000,'72,000');
insert into n_test values (72,000,'72,000')
            *
ERROR at line 1:
ORA-00913: too many values

SQL> insert into n_test values ('72,000','72,000');
insert into n_test values ('72,000','72,000')
                           *
ERROR at line 1:
ORA-01722: invalid number

SQL> insert into n_test values ("72,000",'72,000');
insert into n_test values ("72,000",'72,000')
                           *
ERROR at line 1:
ORA-00984: column not allowed here

SQL> insert into n_test values (72000,'72,000');

1 row created.

SQL> select * from n_test;

         A B
---------- ----------
         1 00001
     72000 72,000

Concerning

Tags: Database

Similar Questions

Maybe you are looking for

  • Single shot crashes my Satellite R850-169

    Hello!I wonder if someone could help. Recently, a single shot would break my Toshiba Satellite R850-169 15.6 inches (Intel Core processor i5 - 2410M, 2.3 GHz, RAM 6 GB, 640 GB HARD drive, Bluetooth and Windows7 Home Premium) laptop. Purchased in June

  • NVIDIA

    I have the pavilion DV8 that I love him and all, but sometimes the screen turns off for seconds (empty) and back on with a message at the bottom of the bar saying that nvidia driver collapsed tasks respond and recovered? so please help with the way f

  • Buttons

    Hello users Diadem I'm a new user for Diadem, I created my own function analysis and calculation and made an interface to it with a dialog box, I want to create a new button in the interface of tiara, when it is selected, the user dialog box to appea

  • limit of 746 GB partition on 3 TB drive installed in CQ5600F

    I installed a red sata 3 TB WD drive in my CQ5600f and motherboard sees the drive, the WD diagnostics sees the drive but Windows 7 volume, partition and format all see gb 746. I'm learning the bios needs update but I am unable to find one on the HP s

  • allow to create or write a PDM file with labview 2014

    Hello I need help. I'm new with LabView. I tried to create a PDM file, but it does not work. My code in the link below is really simple, but I don't know what the problem is. My code doesn't throw any errors so I don't know what to look for in the in