java连接mysql分页我哪里错了啊,大神们看看!
Stringsql="select*fromcmssou_member"+"LIMIT?,?";intpargeId1=(pargeId-1)*5;intpargeId2...
String sql="select * from cmssou_member " +
"LIMIT ? , ?";
int pargeId1=(pargeId-1)*5;
int pargeId2=pargeId*5;
String [] pars={pargeId1+"",pargeId2+""};
ResultSet rs=super.executeQuery(sql,pars);
List<Cmssou_member> list=new ArrayList(); 展开
"LIMIT ? , ?";
int pargeId1=(pargeId-1)*5;
int pargeId2=pargeId*5;
String [] pars={pargeId1+"",pargeId2+""};
ResultSet rs=super.executeQuery(sql,pars);
List<Cmssou_member> list=new ArrayList(); 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询