Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> oracle Pro C question
> -----Original Message-----
> From: Jamie Pearce
> Sent: 01 September 2000 17:25
> To: John Dunn
> Subject: oracle question
>
> Can you post this piss easy question to your Oracle group - I've wasted
> too much time trying to do it.
>
> I have an Oracle field on a table defined as VARCHAR2(200) and a C host
> variable defined as char mystring[200].
>
> How do I select the oracle field in to the C host variable so that a null
> character automatically gets appended to the string?
> e.g. if the Oracle field contained "hello" then the C host variable would
> contain "hello\0" with no extra blanks?
Received on Mon Sep 04 2000 - 02:52:06 CDT
![]() |
![]() |