Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> oracle Pro C question

oracle Pro C question

From: John Dunn <john.dunn_at_sefas.co.uk>
Date: Mon, 4 Sep 2000 08:52:06 +0100
Message-Id: <10609.116137@fatcity.com>


> -----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

Original text of this message

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