DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: ORA-01840: input value not long enough for date format

Hybrid View

  1. #1
    Join Date
    Mar 2002
    Posts
    303

    ORA-01840: input value not long enough for date format

    Hi,

    i make a SELECT query and i have a error message:
    ORA-01840: input value not long enough for date format.
    My select query is:
    Select to_date(datliv,'yyyymmdd') from table@ggos;

    I have the same message error when i make this in pl/sql Procedure.


    Please help.
    Bensmail

  2. #2
    Join Date
    Dec 2000
    Location
    Ljubljana, Slovenia
    Posts
    4,439
    What is the datatype of the column DATLIV?

    If it's CHAR or VARCHAR2, the values returned by the following select are the troublemakers:

    SELECT datliv FROM table@ggos
    WHERE LENGTH(datliv) < 8;

    However I have the strange feeling that the datatype of DATLIV is DATE. If this is tru then use TO_CHAR, not TO_DATE:

    Select TO_CHAR(datliv,'yyyymmdd') from table@ggos;
    Last edited by jmodic; 01-23-2003 at 10:50 AM.
    Jurij Modic
    ASCII a stupid question, get a stupid ANSI
    24 hours in a day .... 24 beer in a case .... coincidence?

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