mysql数据库查询语句where中比较大小的条件判断出错

2025-03-23 03:12:01
推荐回答(3个)
回答1:

这样写:
rs=db.queryExecute("select * from customer where id<" + number,new String[]{});

不知道你是什么语言,我写+作为运算符,如果是VB等语言应该使用&,PHP和PERL使用.

回答2:

用占位符
rs=db.queryExecute("select * from customer where id

回答3:

你用个占位符试试 ?