你们需要检查你试图插入的日期格式,并尝试用适当的格式来更新方法。
http://infolab.stanford.edu/~ullman/fcdb/oracle/or-time.html” rel=“nofollow noreferer” http://infolab.stanford.edu/~ullman/fcdb/oracle/or-time.html。
Oracle s default format for DATE is "DD-MON-YY".
If you want to retrieve date in particular format you need to use :
TO_CHAR(<date>, <format> )
同样,如果你需要添加/更新日期,加上非标准格式的日期,则需要使用:
TO_DATE(<string>, <format> )
<代码><format> strings can be formation from over 40 options. 一些较为受欢迎的方面包括:
MM Numeric month (e.g., 07)
MON Abbreviated month name (e.g., JUL)
MONTH Full month name (e.g., JULY)
DD Day of month (e.g., 24)
DY Abbreviated name of day (e.g., FRI)
YYYY 4-digit year (e.g., 1998)
YY Last 2 digits of the year (e.g., 98)
RR Like YY, but the two digits are ``rounded to a year in the range 1950 to 2049. Thus, 06 is considered 2006 instead of 1906
AM (or PM) Meridian indicator
HH Hour of day (1-12)
HH24 Hour of day (0-23)
MI Minute (0-59)
SS Second (0-59)