大虾们帮我看看是不是我的SQL语句是不是有问题啊
public ResultSet check(String name) { try{ Connection conn=SqlBean.connection(); Statement stmt=conn.createStatement(); rs=stmt.executeQuery("select password from login where username=" +name); }catch(Exception e1){ e1.printStackTrace(); } return rs;
}