求指导,com.microsoft.sqlserver.jdbc.SQLServerException: 已生成用于更新的结果集。
inti=0;conn=super.getConnection(conn);Stringsql="SELECT*FROMdb_BlodMay.dbo.tb_consume...
int i=0;
conn=super.getConnection(conn);
String sql="SELECT * FROM db_BlodMay.dbo.tb_consumer where account=? and password=?";
try {
ps=conn.prepareStatement(sql);
ps.setString(1, account);
ps.setString(2, password);
i=ps.executeUpdate();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}finally{
super.CloseAll(null, ps, conn);
}
return i; 展开
conn=super.getConnection(conn);
String sql="SELECT * FROM db_BlodMay.dbo.tb_consumer where account=? and password=?";
try {
ps=conn.prepareStatement(sql);
ps.setString(1, account);
ps.setString(2, password);
i=ps.executeUpdate();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}finally{
super.CloseAll(null, ps, conn);
}
return i; 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询