Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Simple Pro*C FETCH Question
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
![]() |
![]() |