1.postgreSQL:
Class.forName("org.postgresql.Driver");
conn = DriverManager.getConnection("jdbc:postgresql://localhost:5432/qyq", "postgres", "qyqqyq547_");
2.mySQL:
3.SQLServer:
4.Oracle:
5.DB2:
1.postgreSQL:
conn = DriverManager.getConnection("jdbc:postgresql://localhost:5432/qyq", "postgres", "qyqqyq547_");
2.mySQL:
3.SQLServer:
4.Oracle:
5.DB2: