哦,上面的JAVA语言调用部分贴错了,现重贴
==========================
CallableStatement cs=con.prepareCall("{call loginCheck(?,?,?)}",ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
cs.setString (1,name);
cs.setString (2,password);
String colName=this.getColName();//返回为“id”或“name”
cs.setString(3,colName);
ResultSet rs=cs.executeQuery();
rs.next();
if(rs.getRow()!=1) return;
==========================
==========================
CallableStatement cs=con.prepareCall("{call loginCheck(?,?,?)}",ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
cs.setString (1,name);
cs.setString (2,password);
String colName=this.getColName();//返回为“id”或“name”
cs.setString(3,colName);
ResultSet rs=cs.executeQuery();
rs.next();
if(rs.getRow()!=1) return;
==========================
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货