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

Home -> Community -> Usenet -> c.d.o.misc -> Simple Pro*C FETCH Question

Simple Pro*C FETCH Question

From: <naren.dasu_at_divatv.com>
Date: Wed, 15 Apr 1998 19:40:32 -0600
Message-ID: <6h3k20$epf$1@nnrp1.dejanews.com>


Hi all,

   This is my problem :-

  char emp_name[12];
  char emp_title[20];

  EXEC SQL FETCH emp_cursor INTO :emp_name, :emp_title ;

 I always get a blank-padded, null terminated emp_name and emp_title. For example I get

            emp_name ='JOHN DOE ' .

How can I get rid of the trailing blanks ? ** I dont want to use strtok().

Defining emp_name to be VARCHAR does not seem to work.

thanks in advance
naren

-----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/ Now offering spam-free web-based newsreading Received on Wed Apr 15 1998 - 20:40:32 CDT

Original text of this message

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