Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Oracle Server > Converting a te...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 16487 of 16853
Post > Topic >>

Converting a textual day of month using TO_DATE, ORA-01858

by Jack <jreid@[EMAIL PROTECTED] > Apr 29, 2008 at 01:11 PM

I am trying to solve the problem of converting a day of the month
provided as a character value ('One') into an Oracle date value:


SQL> create table t1 (
  2  my_date DATE
  3  );

Table created.

  1  INSERT INTO t1
  2* VALUES (TO_DATE('June One, 2000', 'Month Ddsp, yyyy'))
SQL> /
VALUES (TO_DATE('June One, 2000', 'Month Ddsp, yyyy'))
                *
ERROR at line 2:
ORA-01858: a non-numeric character was found where a numeric was
expected

It looks to me like like this is due to not having a 'direct' format
model for a character value for a day of the month. Month values have
the "month" format model to help with this, but I can't find anything
corresponding for the day of the month.

Oracle 10.2.0.1.0

Thank you for any suggestions.

Jack




 1 Posts in Topic:
Converting a textual day of month using TO_DATE, ORA-01858
Jack <jreid@[EMAIL PRO  2008-04-29 13:11:12 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Fri Jul 4 20:38:05 CDT 2008.