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: varchar2 and number

Re: varchar2 and number

From: Pierre Charpenay <pcharpenay_at_unilog.fr>
Date: 2000/08/09
Message-ID: <39913F6B.A6462AC7@unilog.fr>#1/1

Hi,

First of all, have you try with a point rather than a comma ? And if it still doesn't work, may be it's possible to do :  Price = Dollar + cents/100
It works in SQL but I don't know with Form ... may be you also need the to_number() function ?

Bye.

Sandy a écrit :
>
> hi,
>
> I have a form with two fields one for a number and for the
> decimal. I tried the character '||'to put them together in
> the same variable then it would be a number(15,2) but of
> course it doesn't work because i do like this :
>
> Price number(15,2);
> Dollar varchar2(15);
> cents varchar2(2);
>
> Price=Dollar ||','||cents;
>
> ...
> Is there a functin or anything to do it ?
>
> thanks a lot
>
> Sandy
 

-- 
 Pierre CHARPENAY
Received on Wed Aug 09 2000 - 00:00:00 CDT

Original text of this message

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