查询价格从minprice 到maxprice 品牌是brand 这打语句怎么在JSP里写?
我写了一条但是错的
String pcondtion=
"price<="+maxprice+"and"+"price>="+minprice;
String bcondtion=
"brand="+brand+"";
String connection="select * from buytable where"+pcondtion+"and"+bcondtion;
他说第一行<有错还有一条思路就是用' where (price between ... and ...) and ...'
这条应该怎么写String connection="................"
我写了一条但是错的
String pcondtion=
"price<="+maxprice+"and"+"price>="+minprice;
String bcondtion=
"brand="+brand+"";
String connection="select * from buytable where"+pcondtion+"and"+bcondtion;
他说第一行<有错还有一条思路就是用' where (price between ... and ...) and ...'
这条应该怎么写String connection="................"
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货