select by attribute query in java

Discussion created by diss on Jan 10, 2012
Latest reply on Jan 10, 2012 by diss
Hello everybody,

I'm programming with ArcObjects and Java. I'm trying to do a select by attributes query.
If I use the Where Clause:

qF.setWhereClause("group = '0_0'")         

the Query is working. But if I want to do it like that

int i =0;
int j = 0;
String subgroup = i+ "_"+j;       
qF.setWhereClause("group = " + subgroup);

I get the error "an invalid SQL statement was used". I already tried to displace the quotation marks but it doesn't work.

Does anybody know what to do?

Thanks for you help in advance!