Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: ORA-01722: invalid number

Re: ORA-01722: invalid number

From: <fitzjarrell_at_cox.net>
Date: 22 Sep 2005 09:07:58 -0700
Message-ID: <1127405278.915719.118570@g14g2000cwa.googlegroups.com>


Comments embedded.
ampierce wrote:
> HELP! Okay, I am doing a simple update statement in which I take a
> decimal field and multiply it by an integer field to populate into a
> decimal field. Here is my example:
>
> update tts_hlpdsktkt_acq_quotelines
> set extprice = numberofitems*unitprice
> where ttstktacqquotelineid = '000000000126090'
>
> in my database, the extprice is a decimal field, as well as the
> unitprice, the numberofitems is an integer field.
>
> I only receive the error if unitprice is over 999. Seems like a "," is
> getting put in there somehow and it is causing the statement to error
> out.
>

That can't be, as NUMBER fields don't store formatting information, only the decimal should there be need for one.

Without seeing samples of your errant data any assistance would be mere speculation, and likely not worth the effort.

> Any ideas?

Provide data samples of the problem entries.

David Fitzjarrell Received on Thu Sep 22 2005 - 11:07:58 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US