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: OCI and NUMBER - how to use?

Re: OCI and NUMBER - how to use?

From: laurent <laurent.citton_at_socgen.com>
Date: Wed, 16 Aug 2000 08:19:55 +0200
Message-ID: <399A328A.D94C6649@socgen.com>

Just bind your column to a double C variable.

S Quirk wrote:

> I've got a NUMBER column, 'PERCENT'. I'd like to use it as a double in
> my program. I've bound the column according to the oci docs - to a 22
> byte char field.
>
> I fetch & the value successfully gets set, though it's not obvious to me
> how to convert that to a double.
>
> I've tried OCINumber and the OCINumberToReal(), but I'm not using
> "object mode".
>
> Any tips or pointers on where to read more?
>
> Thanks,
> Steve
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
  Received on Wed Aug 16 2000 - 01:19:55 CDT

Original text of this message

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