Sql loader, how to get decimals into the database?

oracle 10.2
we have data of the form
1.10
1.11
we are using "decimal external" in the control file.
The table is a straight number field
I did a test where I created a table with a number field and without and precision and did regular inserts. I got the decimal values.
so I did
create table x (y number);
insert into x values (1.10);
insert into x values (1.11);
and i got back
1.1
1.11
when we sql load we get
1
1

Why use decimal external then? What's wrong with leaving the field as number?

Similar Messages

  • I'm trying to make a holiday card, but can't figure out how to get photos into the card.

    I'm trying to make a holiday card, but can't figure out how to get photos into the card.

    Selectto( s) and create the card - if you want to add more photos ot it drag then to the card project in the source pane on the left
    LN

  • How to get data into the mySQL database?

    First some background.
    I have a website that has outgrown its designed dimensions and is a huge burden to maintain. See PPBM5 Benchmark
    There is a lot of maintenance work involved, so I'm investigating a PHP/MySQL approach to easen the burden and to add functionality to the site. With the current Excel based structure and over 420 entries, it is cumbersome for me to maintain, but also for users to find what they need.
    A MySQL based dynamic structure is a lot easier and offers vastly more selection capabilities, like selecting only records that meet specific criteria.
    Data submission is done with a form, that contains most of the relevant data, but the drawack is that people submitting their data are often not technically inclined, give wrong answers due to a lack of understanding or making typo's. The test results are attached in one or two separate .txt files, but often they have not read the instructions correctly or did something wrong, so these attached .txt files can not be trusted automatically, they have to be checked before inclusion.
    These were my initial thoughts:
    1. Data collection:
    To avoid spending all our energy and time  on correcting typo's, getting missing data, correcting errors, I am  investigating the use of CPU-Z in Ghost mode to create a .txt or .html  file that contains all relevant hardware info we need and even more. It gives all the info we currently have, but adds  data like number of memory sticks, DDR timings, stock clock speed and  BCLK setting, video card info and VRAM size, etc.
    To see what I mean, run CPU-Z, go to the About tab and press the Save Report button and look at the results.
    This can all be done without user intervention in an automatic way, but  maybe I need to add an Auto-It file to the test to make it all run as  desired.
    If this works and I'm able to extract the relevant data from the created  file and can insert it into the database, we may be in business for the  next version of PPBM5.5 or PPBM6. It does require a modification to the instructions, making them a lot  easier, because there is less data to fill out.
    2. Data submission:
    The submission form can be simplified if  the CPU-Z data can be used. We have to create an automatic way to attach  the created .html file from CPU-Z to the submission form and we have to  streamline the Output.txt and Output-MPE.txt files to be more easily included in the 'form.lib.php' file. It  currently is manual labor and very time consuming.
    3. Adding to Database:
    I have to find a way to create database  records from the Gmail forms I receive. All incoming mail messages need  to be checked on relevancy and if relevant, need to be added  automatically to the database and then offered for approval before final inclusion in the database. Data included in the database  will then include submission date and time, Email address,  IP address  used, plus links to the files submitted and available on the website.
    4. Publication of the database:
    After approval of new records from step  3, all updates will be automatically applied to the database and  accessible for users. I do not yet intend to introduce a user account ,  requesting login before all functionality is accessible. Too much trouble and administration.
    Queries should be possible on things like CPU (check box), so include  17-920, i7-930, i7-950 but exclude i7-980X and i7-990X, Size of memory  (check box), Overclocked (boolean, yes, no), SSD as OS disk, and similar  options.
    The biggest problem is to keep the color grading and statistical  indicators (Top, D9, Q3, Med, Q1 and D1) intact on dynamically generated  queries. Say you make a query which results in 20 observations, this  should show the related colors and legends. Next query results in 48 observations and of course the color grading and legends  do need to reflect that. Question in my mind, does the RPI remain  constant, independent of the query or does that need to be recalculated  on the basis of the query?
    Next thing is to allow a user to select a specific observation and by  simply clicking on it be shown, in a separate window (detail page) or  accordion, all the CPU-Z related information about the hardware.
    The graphs, Top-20 and MPE Gains, need to be dynamically adjusted, based on the query used.
    5. Ideally, external links:
    In an ideal situation, one could link the  CPU-Z data to external price databases, looking up current prices for  CPU, memory, video card, disks, raid controller, etc. to get instant  BFTB charts, based on the query made. But that is the next step.
    Situation now:
    I have a MySQL database that is easily updated with the new submissions. Simply create a .CSV flie from the submitted forms and import that into the database. The bulk of the initial work is done.Lots remain to be done as you can see above, but that is for a later time.
    Question:
    I have this table, that needs to be filled with data in the submitted and attached files. Mr. X submitted his data and can be uniquely identified by his "Ref_ID". He attached one or two files in .TXT format with the relevant test data. These files are stored on the server with a concatenated name:
    "Ref_ID","-","filename"
    Say his Ref-ID is: 20110204-6cf5 and his submitted file is called: Output(99).txt then the file can be found on the server as
    20110204-6cf5-Output(99).txt
    I need to be able to open that comma delimited file, the contents may look like this: "439","1036","819","531" and insert these contents into the relevant record and fields.
    Graphically,
    is what I want to achieve.
    This being my first exposure to PHP/MySQL, you can imagine I'm not clear on how to go from here.
    Added complication is that I actually have 5 numbers to insert per record and two calculated fields, Total Score and RPI should be calculated fields. Haven't yet figured out how to handle calculated fields, maybe only in the PHP/HTML code and not in the database.
    I hope someone can help me.

    You do have a very complex looking site and may need several tables in mysql to handle all that data. If you knew to phpmysql I would suggest taking a look at this tutorial it will help get you started in understanding how to $_GET info from a database and also how to $_POST data to a database. I am no expert just learning myself and I found this very helpful. This is the link http://www.adobe.com/devnet/dreamweaver/articles/first_dynamic_site_pt1.html
    There are also many tutorials on Youtube to help build a CMS Content Management Site I would suggest the following: -
    http://www.youtube.com/user/phpacademy
    http://www.youtube.com/user/betterphp
    http://www.youtube.com/user/flashbuilding
    And many more on my channel here
    http://www.youtube.com/user/Whisperingonthewind
    CMS's are easier to maintain, add edit and delete content.
    I have also recently bought a Book by David Powers Training from the Source very helpful.
    Anyway hope you get it sorted.

  • Why does not the data get saved into the Database

    Please check if there is any thing wrong with my code here. Why cant i save the data in to my database. when i used the same things in other places it works.
    guys i have copied a portion of the code here. right now i have commented few areas to not give me any errors on the whole program
    Please check why cant i save the data into the database.
    i have created a seperate class for database connection Utilities
    void saveData()
                   //Utilities ut = new Utilities();
                   //connection = ut.getConnection();
                   //ResultSet resultSet;
              // JourneyID = ut.getResults(qryJourneyID);
                   strJourneyID = txtJourneyID.getText();
                   System.out.println("++++++++++++++++++++++++"+strJourneyID);
                   strVehicleID = (String)comboVehicleID.getSelectedItem();
                   System.out.println("++++++++++++++++++++++++"+strVehicleID);
                   strDriverID = (String)comboDvrID.getSelectedItem();
                   System.out.println("++++++++++++++++++++++++"+strDriverID);
                   strStartDateTime = txtDateTime.getText();
                   System.out.println("++++++++++++++++++++++++"+strStartDateTime);
                   int a = JOptionPane.showConfirmDialog (null, "Are u sure you want to save the changes?", "WARNING!", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);
                        if (a == 0)
                             if(NEW)// new is a boolean value
                                  //ADDING NEW DATA STATMENT
                                  System.out.println("INSERTING NEW ROW IN THE TABLE...");
                                  try
                                       String insert ="INSERT INTO Job VALUES (" + "'" + strJourneyID + "'"+
                                       ", '"+ strVehicleID +     "',"
                                       +"'"+ strDriverID +"',"
                                       + "'"+ strStartDateTime +"')";
                                       System.out.println("STATEMENT IS " + insert);
    //                                   InsertStmt = connection.createStatement();
    //                                   InsertStmt.executeUpdate(insert);
                                       JOptionPane.showMessageDialog(null, "You data has been successfully saved.","TIS: Operation completed", JOptionPane.INFORMATION_MESSAGE);
                                  catch (Exception e)
                                       e.printStackTrace();
                                       JOptionPane.showMessageDialog(null, "Problem encountered while adding new data");
                             else
                                  JOptionPane.showMessageDialog(null, "it is supposed to save data");
                                  /*try
                                       String ChangeRecord = "UPDATE Job SET " +
                                       "JourneyID = '" + strJourneyID+ "'"+
                                       "VehicleID = '" + strVehicleID+"',"+
                                       "DriverID = '"+strDriverID+"'," +
                                       "StartDateTime='" + strStartDateTime+ "'";//syntax error???
                                       System.out.println(""+ ChangeRecord);
                                       UpdateStmt = connection.createStatement();//just added
                                       UpdateStmt.executeUpdate(ChangeRecord);
                                       JOptionPane.showMessageDialog(null, "You data has been successfully saved.","TIS: Operation completed", JOptionPane.INFORMATION_MESSAGE);
                                  catch (Exception change_exception)
                                       change_exception.printStackTrace();
                                       JOptionPane.showMessageDialog (null, "Problem encountered while updating","TIS: Problem encountered",JOptionPane.ERROR_MESSAGE);
                        else
                             JOptionPane.showMessageDialog(null, "You chose to cancel the operation","Operation cancelled", JOptionPane.INFORMATION_MESSAGE);
                        }

    Yes you have commented all the code that update the
    database so how can it update the database.
    By the way for inserting dont use Statement use
    PrepairedStatement
    by the way next time please post codes in code tagsMan i have commented it becaues it if i dont comment it givens me errors. like cannot find variable and i dont understand how to use the code button. whereever i click the code button it displays the  at the end of the code! what to do?
    connection = ut.getConnection();
    ResultSet resultSet;
    UpdateStmt = connection.createStatement();
    UpdateStmt = connection.createStatement();
    UpdateStmt.executeUpdate(ChangeRecord);
    please check it once again
    void saveData()
                   Utilities ut = new Utilities();
                   connection = ut.getConnection();
                   ResultSet resultSet;
              // JourneyID = ut.getResults(qryJourneyID);
                   strJourneyID = txtJourneyID.getText();
                   System.out.println("++++++++++++++++++++++++"+strJourneyID);
                   strVehicleID = (String)comboVehicleID.getSelectedItem();
                   System.out.println("++++++++++++++++++++++++"+strVehicleID);
                   strDriverID = (String)comboDvrID.getSelectedItem();
                   System.out.println("++++++++++++++++++++++++"+strDriverID);
                   strStartDateTime = txtDateTime.getText();
                   System.out.println("++++++++++++++++++++++++"+strStartDateTime);
    int a = JOptionPane.showConfirmDialog (null, "Are u sure you want to save the changes?", "WARNING!", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);
                        if (a == 0)
                             if(NEW)
                                  //ADDING NEW DATA STATMENT
                                  System.out.println("INSERTING NEW ROW IN THE TABLE...");
                                  try
                                       String insert ="INSERT INTO Job VALUES (" + "'" + strJourneyID + "'"+
                                       ", '"+ strVehicleID +     "',"
                                       +"'"+ strDriverID +"',"
                                       + "'"+ strStartDateTime +"')";
                                       System.out.println("STATEMENT IS " + insert);
    //                                   InsertStmt = connection.createStatement();
    //                                   InsertStmt.executeUpdate(insert);
                                       JOptionPane.showMessageDialog(null, "You data has been successfully saved.","TIS: Operation completed", JOptionPane.INFORMATION_MESSAGE);
                                  catch (Exception e)
                                       e.printStackTrace();
                                       JOptionPane.showMessageDialog(null, "Problem encountered while adding new data");
                             else
                                  JOptionPane.showMessageDialog(null, "it is supposed to save data");
                                  try
                                       String ChangeRecord = "UPDATE Job SET " +
                                       "JourneyID = '" + strJourneyID+ "'"+
                                       "VehicleID = '" + strVehicleID+"',"+
                                       "DriverID = '"+strDriverID+"'," +
                                       "StartDateTime='" + strStartDateTime+ "'";//syntax error???
                                       System.out.println(""+ ChangeRecord);
                                       UpdateStmt = connection.createStatement();//just added
                                       UpdateStmt.executeUpdate(ChangeRecord);
                                       JOptionPane.showMessageDialog(null, "You data has been successfully saved.","TIS: Operation completed", JOptionPane.INFORMATION_MESSAGE);
                                  catch (Exception change_exception)
                                       change_exception.printStackTrace();
                                       JOptionPane.showMessageDialog (null, "Problem encountered while updating","TIS: Problem encountered",JOptionPane.ERROR_MESSAGE);
                        else
                             JOptionPane.showMessageDialog(null, "You chose to cancel the operation","Operation cancelled", JOptionPane.INFORMATION_MESSAGE);
                        }

  • How to get acces to the database

    Hi,
    I'm trying to find a way to acces the database (not the customers database) of business catalyst is there a way to do that?
    Or can i add my own database to business catalyst.
    I Need to get acces to the database because we have a contract with a company that provids us with news items every workday
    and they want to connect there system to the database.
    Gr. danny

    Hi Danny,
    The system does not work like that. There is no database you can access in that sense. If you want to create news items on your site build yourself a web app or use the integrated blog.

  • SQL query - how to get parameters into a function within a SELECT statement

    Hi,
    I have SQL query roughly as follows
    SELECT A, B, C, MAX(CASE...) AS "D_NAME", FunctionX(B, C, "D_NAME")
    FROM...
    WHERE...
    How to get alias "D_NAME" as a valid parameter into FunctionX?

    Hi,
    user8819407 wrote:
    Hi,
    I have SQL query roughly as follows
    SELECT A, B, C, MAX(CASE...) AS "D_NAME", FunctionX(B, C, "D_NAME")
    FROM...
    WHERE...
    How to get alias "D_NAME" as a valid parameter into FunctionX?Either
    (1) repeat the calculation or
    (2) compute it in a sub-query
    Here's an example of (2)
    WITH  got_d_name  AS
        SELECT A, B, C, MAX(CASE...) AS "D_NAME"
        FROM...
        WHERE...
    SELECT  A, B, C, D_NAME, FunctionX (B, C, D_NAME)
    FROM    got_d_name
    ;A column alias (like d_name) can be referenced in the ORDER BY clause of the query where it was defined, but that's the only place in that query where it can be referenced.

  • How to get files into the Audiobook directory

    Hi. I have an awful lot of lectures, poems etc on my HD, but itunes and ipod refuse to acknowledge them as audiobooks, they appear in the normal music folder instead (same goes for my videos, they are all in the movies folder). Any ideas how to solve that?
    best regards
    ekmek

    Hi. I have an awful lot of lectures, poems etc on my
    HD, but itunes and ipod refuse to acknowledge them as
    audiobooks, they appear in the normal music folder
    instead (same goes for my videos, they are all in the
    movies folder). Any ideas how to solve that?
    best regards
    ekmek
    Audiobooks have to be in M4B (protected AAC) format to appear in the audiobooks category on an iPod. If you convert them to AAC from MP3 using iTunes, find the converted version (which will have the extension .m4a) and rename it .m4b (if you can't see the extension in My Computer in XP, you'll need to select "Tools," "Folder Options," "View," then uncheck the option that says "Hide extensions for known file types"). Then drag it to your iPod in iTunes. Keep in mind, transcoding it to AAC means a possible (although likely negligible) quality loss -- I listen to audiobooks in the car, so I don't really notice a difference (or much of one.)
    a grey one Windows XP Pro it beeps at me

  • HT4872 My gmail contacts synced into FaceTime, but not in my contacts app.  how do I get them into the contact app on my ipa?

    My gmail contacts synced into the. FaceTime contacts, not my contact app on my new iPad.  I don't think that is wise since Siri or I may try to make a  phone contact may actually be a factime call, butI don't know how to get them into the app ( tried via the "add account in settings, and with a cheap Google synch app) . 

    They could be on another page on your iPhone, try doing a search for the apps.  If you still don't see them restart your iPhone by holding down the on/off and home buttons at the same time until you see the Apple logo.  If you are still having problems try to reset your home screen. 

  • Hi, i purchased a 2 dvd digital set. i cant just download it straight to my ipad. they said i have to down load it to my i tunes, then can transfer to i pad. im not seeing how to click the files from my email, and get them into the i tunes acct... ugh.

    hi, i purchased a 2 dvd digital set. i cant just download it straight to my ipad. they said i have to down load it to my i tunes, then can transfer to i pad. im not seeing how to click the files from my email, and get them into the i tunes acct... ugh.
    i do not have a mac home pc. just a regular pc

    I had the same problem after I gave my old iPad to my parents and tried to install Netflix. This is what you have to do:  Open iTunes on your computer, the one you sync your iPad to. Then go to iTunes Store and search for and download Netflix app. After you download it, if your iPad is set to download new purchases it may start downloading on your iPad. If so, tap and hold to delete the app (because it is trying to install the new version on the iPad) Next step, go to the App Store on your iPad and find Netflix and it should say install since you already purchased it on the computer. Tap to install, and it will say the version is not compatible, tap to download a previous version. Click that and it will install the older version!    One more thing, if and when you sync to your computer again it will say something like " Unable to install Netflix on your iPad" Just click the box to never remind you again, because it's trying to sync the newer Netflix app to your iPad, but it doesn't work so it displays the message. The old app will remain on the ipad. Hope this helps, good luck

  • How to load a XML file into the database

    Hi,
    I've always only loaded data into the database by using SQL-Loader and the data format was Excel or ASCII
    Now I have to load a XML.
    How can I do?
    The company where I work has Oracle vers. 8i (don't laugh, please)
    Thanks in advance!

    Hi,
    Tough job especially if the XML data is complex. The have been some similar question in the forum:
    Using SQL Loader to load an XML File -- use 1 field's data for many records
    SQL Loader to upload XML file
    Hope they help.
    Regards,
    Sujoy

  • I am a CC subscriber and trying to update lr5.7 and I am told to got to my CC folder and click on install. The problem is, LR is not in my file. I guess I have been using my original lr that I bought years ago. What now? How do i get lr into the CC file?

    I am a CC subscriber and trying to update lr5.7 and I am told to got to my CC folder and click on install. The problem is, LR is not in my file. I guess I have been using my original lr that I bought years ago. What now? How do i get lr into the CC file?

    Gary116 please remove and reinstall Lightroom by following the steps listed in CC desktop lists applications as "Up to Date" when not installed.  The version of Photoshop Lightroom available through the Creative Cloud Desktop application supports your Creative Cloud Membership.

  • How do I get back into the US iBookstore?

    How do I get back into the US iBookstore? I looked up a book title by a British author and ended up in the UK iBookstore. The book was priced in £, I tried to buy it, then a message appeared that I had to go to the US iBookstore, but no directions or way to get back there.  I've tried everything.  Help!

    1. Go to Settings > iTunes & App Stores > Apple ID.
    2. Tap your Apple ID
    3. Tap View Apple ID
    4. Enter your password
    5. Go to Country/Region in the popup window to change to the desired store.

  • My ipod is locked, but there is no unlock button, how do i get back into the ipod

    the ipod is locked, with no unlock button. how do i get back into the ipod

    Place the iPod in Recovery Mode and restore via iTunes.
    iOS: Wrong passcode results in red disabled screen
    If not successful, try DFU mode.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings

  • TS1424 I have used itunes forever, now when I try to go to the itunes store, it says an error has occured error code 3212, how do I get back into the itunes store

    I have used itunes forever, Sunday night when I tried to get into the itunes store an error popped up and said could not open; error code (-3212), How do I get back into the itunes store?

    Recovery Mode
    1. Disconnect the USB cable from the device, but leave the other end of the cable connected to your computer's USB port.
    2. Turn off the device: Press and hold the Sleep/Wake button for a few seconds until the red slider appears, then slide the slider. Wait for the device to turn off.
    3.While pressing and holding the Home button, reconnect the USB cable to the device. The device should turn on.
    4. Continue holding the Home button until you see the "Connect to iTunes" screen. When this screen appears, release the Home button. iTunes should alert you that it has detected a device in recovery mode. Click OK, and then click Restore to restore the device.
    Note: Data will be lost. You may have to repeat the above many times.

  • I just ripped quite a few music albums.  How do I know if they went into the cloud, and if they did not, how do I get them into the cloud

    just ripped quite a few music albums.  How do I know if they went into the cloud, and if they did not, how do I get them into the cloud

    I assume you have iTunes Match turned on in iTunes?
    You can create a smart playlist in iTunes that has "iCloud Status" is "Matched" or "Upload" - that will tell you what's in the cloud.

Maybe you are looking for