public boolean insert(int score, String time) {
sql = "insert into score values(" + score + ",'time')";
try {
stmt.executeUpdate(sql);
} catch (SQLException e) {
System.out.println("插入语句执行错误...");
}
return true;
}
stmt初始化了么?
必须初始化啊,我已经找到解决的办法了,谢谢哈~