Re: OCI Functions for C

From: Gert Rijs <gem_at_wirehub.net>
Date: 1996/10/09
Message-ID: <325C06DD.8BC_at_wirehub.net>#1/1


Thierry Merlin wrote:
>
> Hi,
>
> I have a query like this :
> "SELECT ename FROM emp";
> I use ofen( ) to fetch one or multiple rows but I don't know the length of
> string returned.
> How I can obtain this information, in which OCI functions ?
> Example :
> Column ename (dbsize=10).
> When I fetch, data='SMITH '
> How I can obtain length=5 ?

I think you now use SQLT_CHR in your odefin call. Replace it with SQLT_STR to get a zero-terminated string back from oracle.

--
Gert Rijs
mailto:gem_at_wirehub.net    (at home)
mailto:gert.rijs_at_corp.ah.nl (at work)
Received on Wed Oct 09 1996 - 00:00:00 CEST

Original text of this message