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 -> Pro*C Help Needed

Pro*C Help Needed

From: Ed Tolsch <ds56947_at_fmr.com>
Date: 1997/08/13
Message-ID: <33F212DE.5E4E@fmr.com>#1/1

I'm trying to use a host variable within a select clause as follows:

EXEC SQL BEGIN DECLARE SECTION
char HostVar[10][15];
EXEC SQL END DECLARE SECTION strcpy(HostVar[0], 'string1');
strcpy(HostVar[1], 'string2');

	select somefield
	from   table
	where  value in (:Hostvar);

This does not return any values unless I fill up the entire array. Any help would be appreciated! Thanks. Received on Wed Aug 13 1997 - 00:00:00 CDT

Original text of this message

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