Insert using TO_NUMBER does not seem to accept the decimal value

Oracle 10g

I'm trying to insert a decimal value in a table from another table oracle oracle. The column of the source table is a data type
    "PLOTSIZE10_30CM"    VARCHAR2(4 BYTE),
    "PLOTSIZE30_50CM"    VARCHAR2(4 BYTE),
    "PLOTSIZE50CM"       VARCHAR2(3 BYTE),
The destination table contains the following:
    "PLOT_SIZE_10_30CM" NUMBER(7,0),
    "PLOT_SIZE_30_50CM" NUMBER(7,0),
    "PLOT_SIZE_50CM"    NUMBER(7,0),
When I run the insert statement as the following decimal values are not inserted into the destination table.
SQL> SELECT DISTINCT PLOTSIZE50CM FROM IMPORT_DATA WHERE STAND_ID = 23;

PLO
---
0.2

SQL>
SQL> INSERT INTO
  2  psp_plot_measurements
  3  ( species_major
  4  , plot_location_id
  5  , codominant_height
  6  , regen_density_primary_code
  7  , regen_density_secondary_code
  8  , PLOT_SIZE_10_30CM
  9  , PLOT_SIZE_30_50CM
 10  , PLOT_SIZE_50CM
 11  )
 12  SELECT DISTINCT species_major
 13       , '2'
 14       , height_codom
 15       , regen_prim
 16       , regen_sec
 17       , TO_NUMBER(plotsize10_30cm)
 18       , TO_NUMBER(plotsize30_50cm)
 19       , TO_NUMBER(plotsize50cm)
 20    FROM import_data
 21    WHERE stand_id = 23;

1 row created.

SQL>
SQL> SELECT PLOT_SIZE_50CM FROM PSP_PLOT_MEASUREMENTS;

PLOT_SIZE_50CM
--------------
             0
See you soon
Ben

Hi Ben,

If the destination table have the column as a Number (7.0) and then how you can store a decimal value.

The destination table contains the following:

"PLOT_SIZE_10_30CM" NUMBER(7,0),
"PLOT_SIZE_30_50CM" NUMBER(7,0),
"PLOT_SIZE_50CM"    NUMBER(7,0),

Look at sample scenario-

SQL> CREATE TABLE TEST1(COL NUMBER(7,0));

Table created.

SQL> CREATE TABLE TEST2(COL NUMBER(7,1));

Table created.

SQL> INSERT INTO TEST1(COL) VALUES(1.234);

1 row created.

SQL> INSERT INTO TEST2(COL) VALUES(1.234);

1 row created.

SQL> INSERT INTO TEST1(COL) VALUES(0.234);

1 row created.

SQL> INSERT INTO TEST2(COL) VALUES(0.234);

1 row created.

SQL> SELECT * FROM TEST1;

       COL
----------
         1
         0

SQL> SELECT * FROM TEST2;

       COL
----------
       1.2
        .2

SQL>

If you want to store the decimal value, you must modify the destination table.

Tags: Database

Similar Questions

  • I wish I had my day starts at 08:30, 12: 00 no, but that change in the options does not seem to affect the appearance of my calendar, how can I change this?

    I just started to use Windows Calendar.  I wish I had my day starts at 08:30, 12: 00 no, but that change in 'options' does not seem to affect the appearance of my calendar, how can I change this?

    Hello
     
     
    Exactly why you want to change the start time of day?
     
    If the part highlighted changes in the calendar view, which means that the option is selected.
     
    I suggest you to see the link and check if this is useful:
     
    Customize windows Calendar
     
    I hope this helps.
  • I have CS5 which does not seem to handle the FIRST for Sony RX100M3. Don't CS6?

    I use a 10.9.5 OSX computer

    I use photoshop CS5, which does not seem to handle the FIRST for Sony RX100M3. Don't CS6?

    Although photoshop cs5 will not open files Sony RX100M3 camera raw, you can use the adobe dng converter to convert them to dng best, which photoshop cs5 should then open.

    Adobe - Adobe Camera Raw and DNG Converter: for Macintosh: Adobe DNG Converter 9.1.1

    Camera Raw: How to use Adobe DNG Converter - YouTube

    Regarding photoshop cs6, Yes, it will open these files with the 9.1.1 update to the camera raw plugin, but I would consider the plan of creative photography of cloud

    instead of buy photoshop cs6, since adobe very probably won't be updated photoshop cs6 more including the new cameras camera raw plugin.

    http://www.Adobe.com/creativecloud/photography.html?promoid=KTMBM

  • As it can be seen in the OS 3 Web page will be available today, 13 September. However my Watch App does not seem to see the update according to the availability. When I go to software update, he repeats that my watch is up-to-date with OS 2.2.2. OS3 will

    As it can be seen in the OS 3 Web page will be available today, 13 September. However my Watch App does not seem to see the update according to the availability. When I go to software update, he repeats that my watch is up-to-date with OS 2.2.2. OS3 will be available today?

    Hello

    Yes - Apple advises that watch OS 3 is scheduled to be released sometime today.

  • My Windows Update does not seem to recognize the need for updates

    My Windows Update does not seem to recognize the need for updates to the programs... This has happened for a long time. It will only recognize the updates of Microsoft Security Essentials, but when he checks the updates it points only to the basics of security. I don't know there are updates that Microsoft Updates jumps...

    msft777jf,

    Check the 2nd Tuesday of each month - later in the day. (after 10:00 Pacific time)

    06/06 / 1107:38: 16 pm

  • Re: CD/DVD drive does not seem to start the DVD in Satellite P750

    My CD/DVD drive does not seem to start DVD, it runs and runs and the only way I can run a DVD (i.e. film) is using Windows Media Center, while the software to install must be enabled in Windows Explorer.

    Anyone?

    Help, please.
    Thank you!

    Have you tried to change AutoPlay settings?
    Open Control Panel and Auto game options. Enable the option Use AutoPlay for all media and devices. Also change other options, especially for DVD movies, software and games.

  • Cannot install Office97pro after system recovery using windows XP. System does not seem to recognize the drive.

    After system recovery cannot reinstall dvd office97pro. It seems that windows XP does not recognize the program on the disk.  Tested the dvd on my computer laptop windows 7, charges fine. Help!

    Hi Fred Chandler,.

    1. What happens when you insert the DVD in the drive?
    2. You receive an error message?
    3. You are able to use the other DVDs on the computer?
    4. Do you have any third-party DVD burning software installed on the computer?

    If you are facing a similar problem with all DVDs on the computer, refer to the article below and then try the steps mentioned, check if it helps.

    Your CD or DVD drive is missing or is not recognized by Windows or other programs

    http://support.Microsoft.com/kb/314060

    If you face this problem with the Office 97 DVD then I would suggest that you post your request in the forums of Microsoft Office.

    http://answers.Microsoft.com/en-us/Office/Forum

  • Satellite M40 does not seem to charge the battery beyond a certain level

    Just a brief explanation of my work.

    I make repairs pc and laptop, replacement of jack, BGA/brazing repairs etc.;
    However computer have always baffled me. I have a Toshiba M40, although I know that this problem is not specific to this model.

    The laptop does not charge the battery beyond a certain level at the moment its impasse on 41%, it says loading in windows but do not go anywhere.
    I saw other portable that stick onto the other percentages 99%, 70% etc.

    I tried to completely discharge the battery (on windows) and reload (for Windows), and also tried to unload and reload not in o/s, if anything they seem to have made things worse as initially the issue of charge level was approximately 50% and more.

    By mistake the laptop wasn't for awhile so the battery flat, which probably did not help as I understand its best to store 40% battery when not in use.

    Any ideas what the problem is and if theres any way to revive this battery?

    Hello

    In my opinion, the problem is related to the breakdown of battery.
    I'm don't know how old your battery is but eventually should be replaced.
    After a long period of use, the battery loses the own performance and must be replaced.
    This is nothing unusual and often to used batteries.

    Welcome them

  • HP 6520: HP Photosmart 6520 does not scan to e-mail. Also does not seem to update the PIN code

    I have scanned in the mail in the past but cannot now to. I get a 403 error. Also the printer doesn't seem to change the PIN code I was sent. Empty the password, it displays about 10 asterisks

    Hi @cjmrnanp

    Welcome to the HP Support forums. I understand that you get a connection error message when you try to use your printer Photosmart 6520 scanning e-mail.

    Please define Manual of the printer an IP address manually and DNS servers. If you do not know how to this I have included a link to another post which has measurements, including screenshots, on how to do it. Please do not worry that the screenshots show a printer Photosmart 7510, the steps are the same.

    Once you have set the IP address manually, you still have the same problem with by entering the PIN code?

    Please let me know the results.

  • Microsoft Backup does not seem to be the case at the scheduled time

    I put p Microsoft Backup to create an image of my hard disc, to run every day at 11:00, but when I looked right at him, under the "last backup" he said '' never. '' Why he would say this, I ran a manual backup a week or so, there is, as I feared him that my data was not backed up?

    I am now running a backup manually and would like to know how I can enter the backup on my drive hard dexternal to convince me that my files are up - t - date? It seems to be without directory tree.

    Hi Andrew,

     

    Thanks for posting your query in Microsoft Community.

    From your description, it seems the automatic backup doesn't seem to be the case at the scheduled time.

    I'll be happy to help you.

    I suggest to follow the steps below and we update on the State of the question.

    Method 1: Scan SFC Run in the computer

    Use the System File Checker tool to troubleshoot missing or corrupted on Windows Vista or Windows system files

    http://support.Microsoft.com/kb/929833

    Method 2: Check if the Volume shadow copy service and windows backup are running and set to automatic in the Services Console.

    a. click Start, type Services in Search. When the page is open, scroll down to find the shadow copy volume and Backup service.

    b. right click on them and see if they are started.

    c. If the services are disabled, start services and set it to Automatic and check if the problem is resolved.

     

    Method 3:

     

    Automatic backup of installation by following the steps in the link below:

    Set up or change automatic backup settings:

    http://Windows.Microsoft.com/is-is/Windows7/set-up-or-change-automatic-backup-settings

     

    Follow the steps in the link below to run the backup at the scheduled time.

     

    Schedule a task:

    http://Windows.Microsoft.com/en-us/Windows7/schedule-a-task

     

    For more information:

    Backup and restore: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows7/back-up-and-restore-frequently-asked-questions

    For all windows questions do not hesitate to contact us and we will be happy to help you.

  • I have nero10 and hp dvd1170. I can set up the project, but my computer does not seem to see the hp1170 of the dvd.

    I can implement the project in nero10. But when I go to set the parameters for where I want the DVD to burn it does not list the hp1170.

    Hello

    · The DVD drive is recognized in Windows Explorer?

    You can follow the steps from the link: your CD-ROM drive or DVD drive is missing or is not recognized by Windows or other programs: http://support.microsoft.com/kb/982116

  • The dodge tool and the "50% gray overlay" does not seem to be the same for the highlights. Is it?

    I read about the technique that uses a layer of 50% gray overlay as a non-destructive Dodge images.

    Even if each tutorial seems to say that they are the same, I can't get the same results, or at least not within a specific range (highlights).

    The dodge tool is a lot better by getting the contrast of the image. While the layer in overlay technique illuminates just in the region.

    Nobody knows what is under the hood on the dodge tool?

    Is it really the same as the technique of D & B?

    Thank you!

    Guido

    I found a really great tutorial that answers my question.

    the idea is to use the layer of gray to 50% overlay or soft light but hide. The masks are extracted from one of the RGB channels or even a version black and white image you need to dodge/burn.

    https://m.YouTube.com/watch?src_vid=54yyq9Pa2wk&feature=IV&v=OSmv7xzXs_0&annotation_id=Ann otation_2379737919

  • Image control does not seem to honor the parameters width and height?

    Code Flex 3.6 below should load a swf file and its 100% width and height of 100 pixels.  This isn't.  Why not?

    He seems to choose an arbitrary width.  I can't understand what he uses.

    <? XML version = "1.0" encoding = "utf-8"? >

    " < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML "layout ="absolute"> "

    < mx:SWFLoader

                        source=" http://path_to_a_dynamically_loaded_swf "

    scaleContent = "false".

    maintainAspectRatio = "false".

    Width = "100%" height = "100" >

    < / mx:SWFLoader >

    < / mx:Application >

    If you would like the image stretching then set scaleContent = true

  • Windows Server 2012 does not seem to recognize the space between the program and files

    I installed 'R' in D:\Program Files.
    Then I need to install another application that must refer to this path and validate during its installation. Installation of the next application saying that there is a "Invalid Version of R.

    If I install R in the following directories, it is recognized and my next application installed successfully:
    C:\Program Files
    Files S:\Program
    D:\R

    Windows Server is not recognize the R application properly installed in "D:\Program Files." Windows runs into the space between "Program" and "Files" and put an end to the execution of this order.

    The application I am trying to install the message 'Invalid Version of R' returns because he can't run the command check correctly. Because nothing is returned from the R.exe, he is unable to continue. This issue seems to be related to Windows and once R.exe can be run correctly D:\Program files, I would expect demand to continue to install. Is anyway getting D:\Program Files to be recognized as the other 3 directories I mentioned?

    Hello

    Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    See you soon.

  • I would like to organize my favorites into folders, which does not seem possible at the moment.

    Is it possible that I have missed?

    Hi Bugsy21, you're right that advanced bookmark organization is not yet possible on firefox for android at the moment. the only workaround at the moment is to synchronize your tablet to a desktop - then your bookmarks will show up on the desktop in a special "mobile bookmarks" folder, the contents of which you can rearrange or put in subfolders and sync those changes back up on your mobile device.

Maybe you are looking for

  • Smartphone can point of interest the L850 Satellite

    Having just a Samsun Galaxy Note3 and cannot point of interest the L850 Satellite. Our other phone Samsun S4 Mini has no problem with the connection. Anyone has any ideas as the phone store support came with a white, because he is now a 2nd phone for

  • F750 Qosmio - no NCQ for HDD internal?

    Hello. During the 'inspection' my new F750, I noticed that the application of the Intel RST indicates that the drive HARD internal (Seagate Momentus XT, 500 GB) use not NCQ... but I don't know why! As far as I know that the F750 already works in AHCI

  • Problem with driver sound on Satellite A200 under Win XP SP3

    Hi guys I recently bought a Satellite A 200 PSAE7. I had downgraded it to Win XP. Everything worked perfectly until last night. I restarted the laptop and I got no sound. I tried to reinstall the Realtek audio drivers, he succeeds, ask for a restart,

  • How to use the Satellite M500-ST5401 for mobile calls using Bluetooth

    Team, I would like to know more information about the bluetooth connectivity of a laptop for mobile phones bluetooth-enabled. My model is Toshiba Satellite M500-ST5401. What I'd like to meet, I have a Sony Ericsson mobile phone and it has bluetooth w

  • P10-304 Satellitensystem showing 2 CPUs

    Information system and DirectX are both showing that I have 2 processors.My system is running slow and so decided to restart and it is still showing 2 CPUs and still a bit slow,any ideas?