用JDBC連接MySQL,Oracle,SQL server數據庫的代碼

注意導包的問題,越是微小的錯誤越容易犯!!! 1、連接MySQL數據庫 public class JDBCTool { public static Connection getConn() { try { Class.forName("com.mysql.jdbc.Driver"); } catch (ClassNotFoundException e) { // TODO A
相關文章
相關標籤/搜索