Results 1 to 4 of 4

Thread: Whats wrong with my sql? Ora-01847 Error

  1. #1
    Join Date
    Jun 2007
    Posts
    2

    Whats wrong with my sql? Ora-01847 Error

    INSERT INTO TBLCASE (CASEID, OFFENSEDATE, CONVICTIONDATE, RELEASEDATE, REGISTRATIONDATE, PAIDREGESTRATION, ANNUALREGISTRATION, COMPLIANCE, NAMEID, VERIFICATIONDATE, OFFICERNAME)
    VALUES (51, TO_DATE('6/19/2007', 'MM/DD/YYYY'), TO_DATE('6/19/2007', 'MM/DD/YYYY'), TO_DATE('6/19/2007', 'MM/DD/YYYY'), TO_DATE('6/19/2007', 'MM/DD/YYYY'), 0, '0', NULL, '434494734', TO_DATE('6/19/2007', 'MM/DD/YYYY'), NULL)"

    I am getting an Ora-01847: day of month must between 1 and last day of month. Those dates are right.
    Attached Images Attached Images

  2. #2
    Join Date
    Sep 2002
    Posts
    5,938

  3. #3
    Join Date
    Jul 2007
    Posts
    5
    as you have given the format like 'MM/DD/YYYY' so, try '06/19/2007' instead of '6/19/2007'

  4. #4
    Join Date
    Jun 2007
    Posts
    41
    According to the attachment ANNUALREGISTRATION is DATE type, therefore '0' input is incorrect

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •