Problem with insertion of '0' in the table

Hello
I have a table called 'TEST' and columns "column1", "column2". When I try to insert the '0' value in Column2. It is the display with a NULL value.

Here is an example

Create table TEST (varchar2 (20) Column1, Column2 number (10,2));

Insert TEST values ('YYYY',' 6.0 ');
Insert TEST values ('BBBB', ' 0');
insert into TEST values ('CCCC',' 8.0 ');
Insert TEST values (Davis ', '0');

Select * from TEST;

RESULTS:

Column1 Column2
ABDELKADER 6
BENAMER
CCBC 8
DELALANDE


expected result:

Column1 Column2
ABDELKADER 6.0
BENAMER 0
CCBC 8.0
DAVIS 0

Published by: user11872870 on September 23, 2010 13:51

Try:

insert into TEST values ('AAAA',6.0);
insert into TEST values ('BBBB',0);
insert into TEST values ('CCCC',8.0);
insert into TEST values ('DDDD',0);

Note: No. ' on the numeric column.

HTH
Thomas

Tags: Database

Similar Questions

  • problem with image that disappears into the table-

    It's totally weird and I can't understand why it's happening.

    I'm new to DW8, even if I used a much older version of DW a lot.

    It doesn't matter how to create the header for http://www.amafca.org/convertedindex.htm, the image of the banner of the very top is getting stripped when I put the page online for tests.

    Currently, I use a table, where the img src is correctly listed as data in the table for that cell. Test perfectly locally. Can I use ACE FTP 3 to load the page on the test site. All graphics are where they are supposed to be. BUT... the top of the banner is not displayed! Looking at the source code, the "img src" link so that the cell is completely empty - the code was stripped of the page!

    How is that possible? ACE FTP is it? How and why? (I never even heard of a program ftp stripping code!)

    I guess I have to just move on and wading in get the DW set up ftp in order to use it for this test page and see if the info is always stripped. But everyone knows this sort of thing happening before?

    Thank you

    PAM to amafca

    I guess you run Norton and it freezes the image before he gets to the browser because you called banner. Rename it to something else and see if that helps. I can see the banner very well.

  • Problem with insert/update statements on the MS Access database

    Hi all

    Before posting this question, I did a search and found this thread.

    I have the same problem as pawel had (in this thread), i.e. cannot insert or update data in the Access database. However, the reason is not that I am using some keywords in my domain name - it has been several years using SQL, some things are 'unwritten' rules But this is the first time I try something in LV

    However, after losing all day for work that I expect to do the same morning in 1 hour, try many different options and debugging until the level low in the Toolbox of data base screw (building or higher), I saw some weird SQL statement being trained in-house - so I tried what Troy has tried.

    "password" is a reserved word in the Jet.  I just looked at MOManagers_M, but by changing the field "password" to 'passworda', it does the job.

  • problem with general total display of the table in the dashboard

    Hello I am new in OBIEE 10 g

    I have a case in my dashboard like this table. table with 2 columns representing the population n date.


    I want the total general show the value of the last population. in this case: the population in 31 Desember 10 (10,251,378). I try to use agregate max but it shows the max value of population. in this case means 10,302,388.

    How can I make the big show total population of 31 Desember 10?

    Help, please

    thx a lot

    Published by: oracleBIDeveloper on January 14, 2011 03:10

    Hello

    Take a look: http://bischool.wordpress.com/2009/08/10/fixing-a-report-totalling-function-must-be-in-a-leaf-query-block-hy000-error-in-obiee/

    Thank you
    Saichand.v

  • AS2 - problem with inserting of partition/name of the database/mysql

    Hello

    First of all... Sorry that I havn't put the ACE in a box, do not know how to do it on this forum!

    Okay, so here's my problem:

    I want to submit my score and the name in my database.

    This is the script I've tried Flash.

    Stop();

    create objects loadVars

    playerx = new LoadVars();

    playerRegistered = new LoadVars();

    playerRegistered.onLoad = showResult;

    create the button handler code to call the function that sends & load php

    _root.submitt.onRelease = submitScore;

    function submitScore (): Void {}

    playerx. Name = name_txt.text;

    playerx.score = score_txt.text;

    playerx.sendAndLoad ("register.php", playerRegistered);

    }

    This is the PHP script:

    <? PHP

    $connect = mysql_connect('x.com.mysql','x','password');

    @mysql_select_db ('x', $connect);

    $sql = "INSERT INTO high_scores_avoidthecars (name, score) VALUES ("'. ")" $_POST ['name']. '"," '. $_POST ['score'].'") ';"

    ? >

    Nothing is posted to the database, no errors etc... any ideas?

    If you went thru the link I provided you should see where you need to change the code that you did to get the Flash to work code.  Here is a link to an example of work that takes into account the second part of the code in this link that involves sending data (from line 28) with your textfields, etc.

    http://www.nedwebs.com/Flash/register.html

    The main problem with your AS2 code involves the following line...

    playerx.sendAndLoad ("register.php");

    It should be...

    playerx.sendAndLoad ("register.php", playerx. 'POST');

    Here's the code I used for the example files, I did...

    AS2 CODE

    playerx = new LoadVars();

    _root.submitt.onRelease = submitScore;

    function submitScore (): Void {}

    Response.Text = "clicked\n";

    playerx. Name = name_txt.text;

    playerx.score = score_txt.text;

    playerx.sendAndLoad ("register.php", playerx, "POST");

    }

    playerx.onLoad = onLoadCallBack;

    function onLoadCallBack (success)
    {
    Response.Text += "onLoad Processed\n";

    {if (success)}
    Response.Text += "Success\n;
    Response.Text += this.lVar1 + "\n";
    Response.Text += this.lVar2;
    } else {}
    Response.Text = "load error".
    }
    }

    PHP CODE

    <>
    read the variables
    $var1 = $_POST ['name'];
    $var2 = $_POST ['mark'];

    Send variables
    echo "& lVar1 = $var1 return &";.
    echo "& lVar2 = $var2 returned as well &";.
    ?>

  • Problem with 'insert into array.

    First of all, sorry for my English.

    I have a problem with this function, I want to insert an item in the table of size 16 based on the index, but when I insert an element in position 4 (for example) and then I insert another element at position 2, the element that was at position 4 is moved to position 5, and I have no why understan

    Can you help me? Thank you

    Table Insert will increase the size of the table and therefore all which comes after your insert index will be its index increased by the number of items you enter.

    If you want to replace an item in a table - use "replace the subset of the table.

    Here is an example:

    Output:

  • Problem with adding new storage to the CDV provider profile

    Hi all

    I have problem with adding new storage to the CDV provider profile.

    My ENV:

    VCD Version 5.5 latest

    vCenter 5.5

    VCDDB - SQL

    I created the environment with two profiles of storage for the first time and it's work well (the storage profile created before I joined the vCenter on the VCD)

    I created tags and he attributed to the data store and I see the new VM storage through the vSphere web client policy.

    I can also see VMS on the VCDDB the dbo.storage_profile_inv the new storage policy table and when I create new provider TDC I can't.

    What I'm trying:

    1 Refresh the storage via the VCD (right click on the attached vCenter) profile

    2. restart the inventory and the profile based on the vCenter servers

    3. restart the VCD and vCenter servers

    Help, please

    You can just follow KB 2075366.

  • How to find inserted last record in the table.

    Version: Oracle 10g

    I have a table called 'Manufacturing' and 3 columns as mfno, itemname, quantity.
    How to find inserted last record in the table 'manufacturing '.

    As I got to know that the Rowid is not a result perfect result. Please provide your inputs.

    user13416294 wrote:
    Version: Oracle 10g

    This is not a version. It's a product name. A version is 10.1.0.2 or 10.2.0.4, etc.

    I have a table called 'Manufacturing' and 3 columns as mfno, itemname, quantity.
    How to find inserted last record in the table 'manufacturing '.

    Not possible as your data model do not answer for him. As simple as that.

    If there is a need to determine an order or associate some time to an entity, then that should be part of the data model - and a relationship, or one or several attributes are necessary to represent this information. Your data model in this case is therefore unable to meet your requirements.

    If the requirements are valid, set the data model. In other words - your question has nothing to do with Oracle and nothing to do with the other pseudo columns in Oracle, the rowscn or the rowid. It is a question of pure data modeling. Nothing more.

  • Problem with Textfield autocomplete--&gt; only use the INSTR function

    Hello team dev,

    I use the new "textfield autocomplete" item type APEX and you have a crazy problem with it.

    I have a table with an index on the same column I want to search with AutoComplete field.

    Index:
    CREATE BITMAP INDEX TEST.GEO_DATA_IDX1 ON TEST.GEO_DATA (postcode)
    NOLOGGING TABLESPACE TS_INDEX;
    Select which is automatically generated by APEX 4:
    SELECT   a.*
      FROM   (  SELECT   DISTINCT postcode AS RV
                  FROM   TEST.GEO_DATA
                 WHERE   country_id = :P1_COUNTRY
              ORDER BY   1) a
     WHERE   INSTR ("RV", :p$_search_string) > 0 AND ROWNUM <= :p$_max_rows;
    
    -- plan
    Plan
    SELECT STATEMENT  ALL_ROWSCost: 4,308  Bytes: 45,31  Cardinality: 1,97            
         2 SORT UNIQUE  Cost: 4,307  Bytes: 45,31  Cardinality: 1,97       
              1 TABLE ACCESS FULL TABLE #TABLE# Cost: 4,306  Bytes: 47,311  Cardinality: 2,057  
    The APEX 3, I used the addon of Tyler Muth with my own Select:
    SELECT   DISTINCT
                postcode AS DV,
                postcode AS RV
         FROM   TEST.GEO_DATA
         WHERE   country_id = L_COUNTRY
         AND    postcode like l_search||'%'
         ORDER BY 1
    
    -- Plan
    SELECT STATEMENT  ALL_ROWSCost: 840  Bytes: 152,867  Cardinality: 13,897                                
         8 SORT ORDER BY  Cost: 840  Bytes: 152,867  Cardinality: 13,897                           
              7 HASH UNIQUE  Cost: 838  Bytes: 152,867  Cardinality: 13,897                      
                   6 VIEW VIEW index$_join$_001 Cost: 836  Bytes: 232,111  Cardinality: 21,101                 
                        5 HASH JOIN            
                             2 BITMAP CONVERSION TO ROWIDS  Cost: 31  Bytes: 232,111  Cardinality: 21,101       
                                  1 BITMAP INDEX RANGE SCAN INDEX (BITMAP) #INDEX#
                             4 BITMAP CONVERSION TO ROWIDS  Cost: 45  Bytes: 232,111  Cardinality: 21,101       
                                  3 BITMAP INDEX SINGLE VALUE INDEX (BITMAP) #INDEX#
    Is there a chance to get my INDEX used by the new element of the APEX? I do not. But I still want to ask before I just rebuild. :)

    Best regards

    Tobias

    Hi Tobias,.

    I guess that you are currently using "contains and case sensitivity ' to the attribute of"search ". Have you ever tried out "Exact and case sensitivity? Because that internally uses the LIKE operator as does your original query and the % is at the end, she must allow the use of an index. But it might still work, because ORDER BY can be run at a different time in your original example, but it's worth a try.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Problem with "Filling space" described in the Blog of Tim

    Dear Experts,
    I use the invoice template described in the excellent Blog of Tim Dexter (Anatomy of a model) to produce my own version. However, I have problems with the 'fill' space as described here: http://blogs.oracle.com/xmlpublisher/2007/03/anatomy_of_a_template_ii_heade.html

    My model is almost identical to the example, when I import XML data when there is only a single folder, fill space have not not cushion with enough blank lines so that the Total of the table at the bottom of the page, does not correspond with the watermark that I. The code in the field "Fill the space" is as in the Blog:

    <? If: not (count ($invLines) mod $lpp = 0) and ($start + $lpp > count ($invLines))? > <? for each: $invLines? > <? If: position() < $lpp - (count ($invLines) mod $lpp)? >


    If the number of records is greater than half a page or more, then the padding is correct. This is even if the word to say on the third page, it is a single record. Therefore, it seems that the padding does not work if the number of records is less than half a page total.

    Is this correct and what someone have a solution - would be greatly appreciated.

    Thank you very much
    Mark

    Hi Mark,

    I had problems with this earlier. See the comments on the bottom of the blog post you linked to above. The problem is down to the filling loop is a variable containing the invoice-based. If the number of invoices in this recordset is not sufficient to provide all the required filling lines, the formatting goes belly up.

    For loop in the XSLT file, you must use models of void. I got it going with my report using the code here:

    http://www.IBM.com/developerWorks/library/x-tiploop.html

    Basically you call recursively model for the number of required fill lines. A lot of effort but far as I could tell, the only solution given the available technology.

    I hope this helps.

    Jon.

  • Is anyone having problems with their Apple Watch since the iOS 10 came to life?

    Is anyone having problems with their Apple Watch since the iOS 10 came to life?

    Hello

    If you have not already done so, it can also help update your Apple Watch to the latest version of the software:

    Update the software on your Apple Watch - Apple Support

  • I had problems with access to most of the Web sites and I noticed that HTTPS is no longer, how do I make permanent HTTPS so I can access any Web site?

    I had problems with access to most of the Web sites and noticed that HTTPS no longer appears whenever I try to access a Web site. I can easily connect to my gmail and facebook account, but the problem is that when I click on a link on FB and gmail, I get the annoying message "refused to connect.

    How to address this issue, rather how to make HTTPS permanent so I can easily access any Web site. The date and time on my laptop are both correct. I am currently using OS x 10.9.5.Please!

    How to address this issue, rather how to make HTTPS permanent so I can easily access any Web site.

    My guess is that you have a damaged or invalid certificate entry OS X KeyChain, but to directly answer this question, I would say that consider you something like HTTPS Everywhere. Note, it is not available for Safari. It is available directly through the Google Chrome browser extensions.

  • problem with my laptop asking for the administrator password or power on password

    I have the same problem with my laptop asking for the administrator password or power on password. It is a compaq presario cq61. It happened when my hard drive failed and was not used for a long time. With the password, any help would be much appreciated. It says system turn off after a few trials with the key: 55427586

    Hello

    Try to enter: 40585508

    Kind regards

    DP - K

  • Having a problem with a redirect virus and the refusal by the system to allow me to download various things, Windows Live Mail in particular.

    I recently tried to remove malware on my Vista based laptop Toshiba.


    I recently tried to remove malware on my Vista based laptop Toshiba. Malwarebytes helped, but I still have problems with a redirect virus and the refusal by the system to allow me to download various things, Windows Live Mail in particular. I tried to download from a copy of the USB stick to a clean computer, but he still refuses to load telling me to check my internet connection, which is fine for general use. Please help I get crazy and do not forget that I am a pure layman - thank you if you can help - Kidso

    I found that the best place to ask this type of question is here: -.

    http://forums.ComputerActive.co.UK/forumdisplay.php?f=20

    There are some very good people out there who helped me (successfully) on 2 occasions.

    Good luck.

    I'll be interested to know how you go.

  • I have the problem with my language of keyboard, the fact is I can't add or remove languages from keyboard

    Hi all
    I have the problem with my language of keyboard, the fact is I can't add or remove languages from keyboard
    When I press the keyboard button change that nothing happens, but in the event viewer I get the following message
    The failing application name: Rundll32.exe_shell32.dll, version: 6.1.7600.16385, time stamp: 0x4a5bc9e0
    Name of the failed module: input.dll, version: 6.1.7600.16385, time stamp: 0x4a5bdf4f
    Exception code: 0xc0000005
    Offset: 0 x 0000000000003756
    ID of the process failed: 0xf5c
    Start time of application vulnerabilities: 0x01cd697d57b60837
    The failing application path: C:\Windows\system32\Rundll32.exe
    Path of the failing module: C:\Windows\system32\input.dll
    Report ID: 95fbd586-d570-11e1-8bfb-c860006d193a
    Can someone help me with this? or maybe there's another way to change the keyboard languages? for example through registry?
    Thanks in advance
    I HAVE Windows 7 x 64

    Hello

    I suggest to create a new user account and check.

    Create a user account.

    http://Windows.Microsoft.com/en-us/Windows7/create-a-user-account

    If the problem does not occur in the new user account, I suggest you to fix a corrupted user profile.

    Fix a corrupted user profile.

    http://Windows.Microsoft.com/en-us/Windows7/fix-a-corrupted-user-profile

Maybe you are looking for