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

Thread: ora-01722

  1. #1
    Join Date
    May 2002
    Posts
    232
    Hiii,all
    we are using9i with j2ee,xml etc.
    I have a query in application --
    select MOBILE,NAME,HOUSETEL,OFFICETEL, CONTACT,SERIALNO,EMAIL,CSREPLY,CSUSERID,
    to_char(REPLYDATE,'dd/mm/yyyy') REPLYDATE,
    to_char(SUBMITDATE,'dd/mm/yyyy') SUBMITDATE from your_digi where mobile = '162701817';

    I t was execuited in sql prompt,but when try to execuite the same query in application side i get a error in my mobile website .
    ORA-01722
    thanks
    kavitha
    kavitha

  2. #2
    Join Date
    Jul 2002
    Posts
    132
    Check the datatype of mobileno field.

    Error: ORA 1722
    Text: invalid number
    -------------------------------------------------------------------------------
    Cause: The attempted conversion of a character string to a number failed
    because the character string was not a valid numeric literal. Only
    numeric fields or character fields containing numeric data may be used
    in arithmetic functions or expressions. Only numeric fields may be
    added to or subtracted from dates.
    Action: Check the character strings in the function or expression. Check that
    they contain only numbers, a sign, a decimal point, and the character
    "E" or "e" and retry the operation.

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