sql语句:select * from 表名 where name = ? and pwd = ? 再判断结果集是否为空就可以了
?你这不行吗?
Class.forName("com.aaa.jdbc.Driver");//mysql数据库这样不行吧。
已经OK了