热门

最新

红包

立Flag

投票

同城

我的

发布
qq_45083936
楠啊#
4 年前
trueqq_45083936

还记得以前it朋友说过:
编程有时莫名让人觉得开心
隐约记得一句话
人类快乐的来源:毁灭和创造。
我于创造中毁灭,2年了,我还在,真好。

CSDN App 扫码分享
分享
评论
2
打赏
  • 复制链接
  • 举报
下一条:
public Boolean validateLogin(String user, String password) { Boolean count = false; String sql = "select Id from student where Id = '" + password + "'"; SQLcontent S = new SQLcontent(); Statement sc = null; try { sc = S.sqlcontent().createStatement(); } catch (SQLException throwables) { throwables.printStackTrace(); } catch (ClassNotFoundException e) { e.printStackTrace(); } ResultSet rs = null; try { rs = sc.executeQuery(sql); if (rs.next()) count = true; } catch (SQLException throwables) { throwables.printStackTrace(); } return count; }为什么返回值一直是空null啊....
立即登录