public int addTeacher(TeacherInfoBean teacherinfo){ String sqlstr = "insert into teacherinfo values(?,?,?,?,?,?,?,?,?,?)"; int result = 0; DbConnection dbConnection = new DbConnection(); Connection con = dbConnection.getconnection(); // 和数据库建立连接 Prep
好的,有问题沟通,数据库操作都是固定的,你可以用C3P0的连接池,底层都封装好了,比较好用[/quote]系统还是提示You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?,?,?,?,?,?,?,?,?,?)' at line 1,说这行代码语法错误,可是我感觉没错误