Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: OCI and NUMBER - how to use?
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