DBAsupport.com Forums - Powered by vBulletin
Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Date Format (Urgent)

  1. #11
    Join Date
    Nov 2000
    Location
    Baltimore, MD USA
    Posts
    1,339
    Case-in-point. This is precisely what you do *not* want to do. Never wrap the column in a function if you can at all avoid it.

    - Chris

  2. #12
    Join Date
    Feb 2000
    Location
    New York,U.S.A.
    Posts
    245
    Hi, Sonaliak, here is the output from your query:
    SQL> select xmlbody from messagearchive
    2 where trunc(to_date(arrivaltime, 'DD-MM-YY')) = trunc(to_date('19-12-00' , 'DD-MM-YY'))
    3 ;

    XMLBODY
    --------------------------------------------------------------------------------
    <Sco
    Type='News' ChannelId='SE.008QBVK'>
    <CreationTime><Time Iso8601="20001219T

    ERROR:
    ORA-01801: date format is too long for internal buffer

    Is that because of to_date?

Posting Permissions

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


Click Here to Expand Forum to Full Width