这样写:rs=db.queryExecute("select * from customer where id<" + number,new String[]{});不知道你是什么语言,我写+作为运算符,如果是VB等语言应该使用&,PHP和PERL使用.
用占位符rs=db.queryExecute("select * from customer where id",new String[]{String.valueOf(number)});
你用个占位符试试 ?