Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > Oracle
|
Oracle General Oracle database discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 8th, 2012, 06:56 AM
Registered User
 
Join Date: Dec 2011
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default ORA-01843 not a valid month

I create a table member with 8 fields, with idMember as primaryKey. Two among these fields is the field's date_of_birth and date_back that have same type, date.
But when I insert data into it, appears an error like this -> ORA-01843 not a valid month.
Previously when I didn't include a date field again, successfully. However when I include it, writing error ORA-01843 not a valid month.

I give the insert command like this:
insert into member values ​​('M102019', 'Adhe Nurcahya',.., to_date ('28-May-1992 ',' DD-MON-YYYY'),..., .. , to_date ('12-dec-2011 ',' DD-MON-YYYY '));

Anyone know why is this possible?
I'm confused, is there because in a record to_date there should be no more than 1??
Thank's.. :)
 
Old February 13th, 2012, 04:17 AM
Registered User
 
Join Date: May 2011
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
Default

Try writing the query as:
insert into member values ​​('M102019', 'Adhe Nurcahya',.., to_date ('28-MAY-1992 ',' DD-MON-YYYY'),..., .. , to_date ('12-DEC-2011 ',' DD-MON-YYYY '));

Regards,
Akaas Developer
http://www.questions-interviews.com/...es/oracle.aspx





Similar Threads
Thread Thread Starter Forum Replies Last Post
ORA-01843 not a valid month adhe2chazper Oracle ASP 2 January 13th, 2012 01:03 PM
Converting month name to month number kalyanykk SQL Server 2005 7 August 19th, 2008 10:37 PM
ORA-14100 auxiora_nemesis Oracle 0 April 6th, 2007 04:25 AM
[Oracle][ODBC][Ora][ORA-01013 Corey Access 1 December 15th, 2006 10:29 AM
query Current Month, Month+1, Month+2, Month+3 anterior Access 2 September 24th, 2006 08:25 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.