完美的myeclipse连接mysql代码和最新驱动包JDBC
最新的连接mysql驱动包JDBC和打开数据库连接和关闭的完美代码。使用的时候这样用:PreparedStatementpstmt=null;Stringsql="insertintot_student(student_id,name,class_name,sex,age)values(?,?,?,?,?)";try{conn=DbUtilSingleTon.getInstance().getConnection();pstmt=conn.prepareStatement(sql);pstmt.setObject(1,id);pstmt.se
下载地址
用户评论
非常感谢,谢谢分享!!!
对我这个菜鸟用处挺大的,谢谢楼主分享