Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This is based on the <em>assumption</em> that you're getting an error about the date format, such as an invalid month value or non-numeric character when numeric expected.</p> <p>Dates stored in the database do not have formats. When you query the date your client is formatting the date for display, as <code>4/16/2011</code>. Normally the same date format is used for selecting and updating dates, but in this case they appear to be different - so your client is apparently doing something more complicated that SQL*Plus, for example.</p> <p>When you try to update it it's using a default <a href="http://docs.oracle.com/cd/E11882_01/server.112/e26088/sql_elements004.htm#sthref394">date format model</a>. Because of how it's displayed you're assuming that is <code>MM/DD/YYYY</code>, but it seems not to be. You could find out what it is, but it's better not to rely on the default or any implicit format models at all.</p> <p>Whether that is the problem or not, you should always specify the date model:</p> <pre><code>UPDATE PASOFDATE SET ASOFDATE = TO_DATE('11/21/2012', 'MM/DD/YYYY'); </code></pre> <p>Since you aren't specifying a time component - all Oracle <code>DATE</code> columns include a time, even if it's midnight - you could also use a <a href="http://docs.oracle.com/cd/E11882_01/server.112/e26088/sql_elements003.htm#sthref362">date literal</a>:</p> <pre><code>UPDATE PASOFDATE SET ASOFDATE = DATE '2012-11-21'; </code></pre> <p>You should maybe check that the current value doesn't include a time, though the column name suggests it doesn't.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload